We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a7e473 commit c4458e0Copy full SHA for c4458e0
src/main.py
@@ -20,6 +20,12 @@
20
break
21
22
world.update()
23
+ if not world.status.is_running():
24
+ # Kiểm tra xem người chơi có chọn nhấn ENTER để replay
25
+ pressed = pygame.key.get_pressed()
26
+ if pressed[pygame.K_RETURN]:
27
+ world = World(screen)
28
+
29
world.render()
30
pygame.display.flip()
31
clock.tick(FPS)
0 commit comments