Parallax

Finally got the parallax background drawing correctly (not that you can see it in this static dribbble).

There was a whole of lot relative maths to wrap my head around (the size of the parallax background is relative to the size of the level, the position of parallax background is relative to the position of the camera, etc).

On top of that the dimensions of textures in OpenGL must be powers of two so I had to reconcile the fact that a texture has to be 256 (or 512) pixels wide or tall versus the 240x160 screen resolution I'm targeting.

View all tags
Posted on Sep 21, 2009

More by Shaun Inman

View profile