-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
42 lines (29 loc) · 964 Bytes
/
main.py
File metadata and controls
42 lines (29 loc) · 964 Bytes
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
35
36
37
38
39
40
41
from modules import math
from constants import colors
from constants.exit_codes import *
from constants.initialisation import *
from classes.Vector2 import Vector2
from dimensions.meters import Meters
import pygame
def main() -> int:
pygame.init()
canvas: pygame.Surface = pygame.display.set_mode((500, 500))
pygame.display.set_caption("Visualisation")
exit_code: int = KEEP_WORKING
height: Meters = Meters("5 km")
width: Meters = Meters("1 km")
print(height / width)
"""vec: Vector2 = Vector2(0., 0., (1., 1.))
objects = [vec]
while exit_code == KEEP_WORKING:
for event in pygame.event.get():
if event.type == pygame.QUIT:
exit_code = WINDOW_CLOSED_REASON
for obj in objects:
if type(obj) is Vector2:
obj.move()
pygame.display.update()"""
return exit_code
if __name__ == "__main__":
exit_code = main()
exit(exit_code)