Added playermovement

-Need to implement key hold down
This commit is contained in:
Christian
2024-08-08 22:43:55 +02:00
parent 5a0ebc7f5a
commit 12190aa4db
3 changed files with 29 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ pygame.init()
pygame.display.set_caption("TESTFENSTER")
pygame.mouse.set_visible(True)
#pygame.key.set_repeat(1, 30)
screen = pygame.display.set_mode((800,600))
clock = pygame.time.Clock()
@@ -33,6 +34,8 @@ while(gamestate):
for event in pygame.event.get():
if(event.type == pygame.QUIT):
gamestate = False
player.handle_input(event)
image = screen.blit(testimage, (pos_x, pos_y))