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.
L or F like
Show and tell for designers
What are you working on? Dribbble is a community of designers sharing screenshots of their work, process, and projects.
© 2018 Dribbble. All rights reserved.
A community of designers sharing their work, process, and current projects.
Minimum 6 characters
Uh oh… We’re still waiting for our spam prevention code to load.
Already a member? Sign in