(http://www.underwaredesign.com/PlayBasicSig.png) (http://www.playbasic.com)
Challenge #18 - Parallax Scrolling (Visual Effect)
In this challenge were going to tackle a classic 2D game visual effect,
Parallax Scrolling. In the confines of this challenge, we'll limit ourselves to horizontal parallax. In other words the screen will only need to move/scroll left and right.
What's a parallax effect ? , it's a term coined to describe faked perspective scenery in 2D games. So a game with parallax scrolling has more than single scrolling layer. Some common examples would be things like distance mountain ranges, back/foreground Trees & Buildings etc.
Since the effect is creating the illusion of the perspective (scene depth), near objects/planes move faster than those further away. So if you have a scene with 3 parallax layers. Layer #1 being foreground trees (near to viewer), layer #2 being the game environment, layer #3 being a distance mountain range. Visually we'd expect Layer #1 to be moving faster (since it's closer the viewer) but proportionally to layers 2 & 3 (Slowest). How do you do this? Well that's the challenge :)
As with all challenges, don't concern yourself too much about the graphics, we're just interested in how such effects could be constructed. So good luck.
Reference Materials http://en.wikipedia.org/wiki/Shadow_of_the_Beast (http://en.wikipedia.org/wiki/Shadow_of_the_Beast)
Submission * Submissions can be written in any version of PlayBasic (http://www.playbasic.com)
* Submission can only be accepted in
Source Code form only.
* Authors can use external Media (images/music) provided you created the media/and or have permission to distribute the includes media or the Media is in the public domain.
*
Zip up your Submissions and please try to keep it smaller than
500K !
*
Authors automatically give consent for their submission(s) to distributed and used for promotional purposes via UnderwareDesign.com, PlayBasic code tank.
* Authors can submit as many times as they like.
* To make a submission, zip up your projects source code + media and either post it in this thread, or create your own thread in either the Source Codes or Show Case forums and post a link bellow.
Dead Line Anytime before the next ice age
Prizes * The best submissions will periodically be highlighted through the PlayBasic IDE news service.
Return to Challenge Index (http://www.underwaredesign.com/forums/index.php?topic=3225.0)