Log In  

Cart [#25597#] | Copy | Code | 2016-07-20 | Link

I made this bit of code for creating a parallax effect for side-scrolling games. It uses three layers of infinitely repeating maps. I've set it up so that all the code is in a self-contained section that can be copied and pasted below your own code, with just an initialise, update and draw function needing to be called from the respective functions in your game.

More complete instructions can be found in the header of the code.

I hope somebody finds it useful!


infinite repeating scrolling parallax map
P#25598 2016-07-20 04:33 ( Edited 2016-07-20 09:42)

:: More
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2018-11-15 16:26 | 0.291s | 1572k | Q:17