Skip to content

Eposkk/Moonlander-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Moonlander-Project

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

Requirements

  • Python 3

  • Pygame

Installation

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!

Game instructions

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

Automatic mode

The game lands the spaceship on its own

Manual mode

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

Screenshots

drawing drawing

About

Simple moonlanding game made in pygame

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages