Lost in space

Posted by
April 21st, 2012 4:27 pm

I had to make some compromises on how to draw stars. I needed a way to have the background rotate with the rest of the scene, but that creates some issues when thinking about how to scroll and Javascript performance. Ultimately, I decided scrolling wouldn’t be required, so the background is rendered once and then rotated.

Fortunately, jumping around on planets wouldn’t really change your perspective of the stars, so leaving them static kind of works. It would’ve been great to have the stars scroll, as it would make movement more evident and add more depth to the scene. It would also make it feel like you’re watching from a distance, as the stars wouldn’t be moving, only your viewport.

Here, our brave hero is lost in space after jumping just a little too high:

Leave a Reply

You must be logged in to post a comment.

[cache: storing page]