Skip to content

normaluser/moon-lander-SDL2

Repository files navigation

Moon lander

a 2D game of gravity using SDL2 / Pascal

This is my attempt to bring "moon lander" back to life.
This version of Moonlander is almost rewritten from scratch
and will be updated to the latest SDL3 version soon.

Dependencies

Windows and Linux:

  • sdl2
  • sdl2-image
  • sdl2-mixer
  • JsonTools
  • Lazarus / Freepascal
  • Pascal SDL2 Header files

a good installation guide for SDL2 and the SDL2-headerfiles can be found at: https://www.freepascal-meets-sdl.net/

Why ?

I want to learn how to use SDL2 to get easy acess to graphic, sound and input.

Bugs / Contributions

If you have any contributions, feel free to drop a pull request or send me a mail.
The FULLSCREEN mode does not work correctly under Windows...

Controls:

  • ESC -> show menue to change game options
  • Arrow Keys -> controll the ship
  • Q -> quit the game
  • P -> pause the game
  • A -> control (toggle) the autopilot
  • F -> control (toggle) the flightdirector

Special Thanks / Credits

the creator of "freepascal-meets-sdl" with his good tutorials

License

Copyright (C) 2026 Normaluser

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2 of the License, OR (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

About

Moon Lander is a 2D game of gravity. Land your ship on the landing pad. Do not go too fast or you will crash.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages