Final assignment in the High School Subject Programmering og Modellering.
This repository contains a game where the goal is to land a spaceship on the moon
The game simulates fuel flow, weight and gravity. You can land it yourself or choose to watch the computer perform a perfect landing
Each time you launch the game, the starting parameters are randomized.
NOTE: This project was written as the final assignment in the first programming course i ever took. There are therefore a number of issues with this project
-
Python 3
-
Pygame
To install pygame run the following command in your favorite shell:
pip install pygame
Run Månelander.py
in a Python IDE like Spyder. You may need to run pygame install command in the IDE console
Play the game!
When you launch the game you can choose whether to play in manual mode or automatic mode Press 1,2 or 3 to control the speed of the simulation
The game lands the spaceship on its own
Use the up and down arrow to change the engine thrust
Use left and right arrow to change sideways thrust
To land the ship safely, the landing speed must be no more than 1 m/s