Skip to content

Small game written in python (using arcade) that simulates planets' orbits and particles.

Notifications You must be signed in to change notification settings

peter-seres/orbit-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orbit Simulator Game

N-body gravity simulation to play with planet orbits, written in python using the arcade API.

Features:

  • LMB: Drag and drop new planets into the simulation.
  • MMB: Drag and drop particles into the simulation.
  • D: Destroy the planets into particles.
  • C: Destroy all particles.

showcase1

showcase2

Install and Run

Using conda

conda env create --file environment.yml conda activate orbit-sim

Using pip

pip install numpy arcade pyglet

Run the game

CD into the repository and run python orbit-sim

Implementation to-do list

  • Custom gui elements:
    • slider
    • button
    • fps counter
    • planet counter
  • Lifetime & destruction of particles
    • set the particle mass to zero
  • Fix history color bug
  • Slider for mass of planet
  • Save / load the situationa into a file
  • Main Menu

About

Small game written in python (using arcade) that simulates planets' orbits and particles.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published