Added new movement

This commit is contained in:
Christian
2024-08-09 15:34:50 +02:00
parent c29ed8af33
commit 0436abb866
2 changed files with 38 additions and 18 deletions

View File

@@ -35,6 +35,12 @@ while(gamestate):
gamestate = False
player.handle_input(event)
if(player.keymap["left"] == True):
player.move("left")
print("links")
if(player.keymap["right"] == True):
player.move("right")
print("rechts")
image = screen.blit(testimage, (pos_x, pos_y))