Daniel Petersen's Blog

Documenting my struggle to make videogames, amongst other nonsense

Home Projects

Lunar Lander

This was a project that I worked on for only two days, but I thought it turned out pretty cool. I wanted to learn the library SFML, and I also wanted to learn the library Box2D. I remember liking the old Lunar Lander game, so I figured that’d be a nice little game to use in order to get the hang of both libraries.

I learned quite a lot making this project, such as the need for a constant time-step in games and how to implement one. The video I used to show this off is a slightly older version of the game that has the thrusters set slightly too strong — I was trying to land in the green zone. Also, yeah, my Lunar Lander was the Tardis from Doctor Who.

Built with C++, SFML, and Box2D

Copyright © - Daniel J. Petersen