Added invoking sprites update() method every frame
This commit is contained in:
parent
052e56836b
commit
903a406c74
@ -59,6 +59,7 @@ class Game:
|
|||||||
while self.running:
|
while self.running:
|
||||||
# Update ingame clock
|
# Update ingame clock
|
||||||
self.ingameTimer.updateTime(self.pgTimer.tick())
|
self.ingameTimer.updateTime(self.pgTimer.tick())
|
||||||
|
self.spritesList.update()
|
||||||
self.eventManager.handleEvents()
|
self.eventManager.handleEvents()
|
||||||
self.spritesList.draw(self.screen.pygameScreen)
|
self.spritesList.draw(self.screen.pygameScreen)
|
||||||
pygame.display.flip()
|
pygame.display.flip()
|
||||||
|
Loading…
Reference in New Issue
Block a user