diff --git a/main.py b/main.py index 4576558..82bfcf6 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,6 @@ import pygame +from input import Input from kart import Kart Vec2 = pygame.Vector2 @@ -11,3 +12,18 @@ player = Kart( dir = 0, speed_max = 10, ) + +def main(): + pygame.init() + + input = Input() + width, height = 800, 600 + screen = pygame.display.set_mode((width, height)) + pygame.display.set_caption("Pygame Window Example") + + while not input.close: + input.poll() + + +if __name__ == "__main__": + main()