This commit is contained in:
alstergym
2026-09-04 09:14:28 +02:00
parent 232d6e4350
commit c9e2c4f199
+16
View File
@@ -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()