-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
34 lines (27 loc) · 807 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import objects
import coords_math
import parameters
import pygame
import os
import events
pygame.init()
screen = pygame.display.set_mode((parameters.screen_dimensions[0], parameters.screen_dimensions[1]))
pygame.display.set_caption("Rocket Simulator")
clock = pygame.time.Clock()
def draw():
for object in objects.object_list:
object.tick()
pygame.draw.circle(
screen,
object.color,
coords_math.translate_coords(object.position),
object.radius/parameters.distance_factor
)
while(parameters.running):
events.runEventListener()
os.system('clear')
screen.fill("black")
draw()
pygame.display.flip()
clock.tick(parameters.ticks_per_second)
pygame.quit()