...
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import pygame
|
import pygame
|
||||||
|
|
||||||
|
from input import Input
|
||||||
from kart import Kart
|
from kart import Kart
|
||||||
|
|
||||||
Vec2 = pygame.Vector2
|
Vec2 = pygame.Vector2
|
||||||
@@ -11,3 +12,18 @@ player = Kart(
|
|||||||
dir = 0,
|
dir = 0,
|
||||||
speed_max = 10,
|
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user