Skip to content

Louis-Finegan/Basic-Projectile-Simulation-PyGame-Python3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Projectile Pygame Simulator Python3.

Libaries used:

  1. pygame

  2. math

  3. time

  4. os

How to use:

  1. Click on one of the grey rectangles and begin typing in the initial conditions. Use the UP_ARROW and DOWN_ARROW keys to switch between the rectangles. Text boxes will appear as light-grey when selected. Enter the following initial conditions:

    • Initial x-velocity in the top most text box.

    • Initial y-velocity in the middle text box.

    • Launch angle in the bottom most text box.

    A recommended initial condition would be x-vel = 4.5, y-vel = 16 and angle = 45.

  2. Press Enter to start Simulation.

Simulation would rom for 60 seconds, then after the program will close.

  • To quit the program click the x in the top right corner, or press q at anytime while the program is running.
  • To reset the program when running press r at anytime the program is running.
  • To delete inputs from the text boxes before pressing enter, select the text box and use the BACK_SPACE key.

Icons:

Catapult icon by Icons8

Ball icon by Icons8