Skip to content

KasraRahimi/planet-system-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Planet Simulation Game 🌎

Another fun challenge I've given myself. I absolutely love creating physics simulations, so I'm going to attempt to make a more controllable version of my previous planet simulation game. The intention is to allow the user to make planets and see how they behave under each other's gravitational influence. I don't intend to add any collision physics, however I may decide to code some in at some later date.

description 📖

This is a sandbox game in which a player may place any planets they wish to. The player may choose a mass, direction and speed prior to placing the planet. The player may also choose the color of the planet they play before placing it. Once a planet is placed, it will follow the laws of newtonian gravitation with every body in the simulation and behave accordingly.

how to install 💾

To play, you must have python installed as well as the pygame module. To install pygame, write the following command in your terminal pip install pygame.

steps to install and play the game

  1. git clone https://github.com/KasraRahimi/planet-system-maker.git
  2. cd planet-system-maker
  3. python run.py or python3 run.py

controls ⌨️

  • w - increase planet's speed
  • a - increment planet's direction counter-clockwise
  • s - decrease planet's speed
  • d - increment planet's direction clockwise
  • q - increase planet's mass
  • e - decrease planet's mass
  • r or t - cycle through colors

image of the game 📷

Here is an example of what the game looks like with some planets orbiting each other. screenshot of the game

About

a small game that allows you to make planetary systems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages