Added playermovement
-Need to implement key hold down
This commit is contained in:
3
test.py
3
test.py
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user