Updated internal comments.
This commit is contained in:
1 parent
50a5a631d8
commit
6e5bbc13ea
1 file changed
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# Description: blockwars - A simple game written in Python.
|
# Description: circlewars - A simple game written in Python.
|
||||||
# Usage: python3 blockwars-game.py
|
# Usage: python3 circlewars-game.py
|
||||||
# Author: Justin Oros (improved by ChatGPT)
|
# Author: Justin Oros (improved by ChatGPT)
|
||||||
# Source: https://github.com/JustinOros
|
# Source: https://github.com/JustinOros
|
||||||
|
|
||||||
@@ -466,7 +466,7 @@ def show_final_score(score):
|
|||||||
SCREEN_HEIGHT // 2 - final_score_text.get_height() // 2))
|
SCREEN_HEIGHT // 2 - final_score_text.get_height() // 2))
|
||||||
pygame.display.flip()
|
pygame.display.flip()
|
||||||
|
|
||||||
# Instead of time.sleep (which blocks), wait for 2 seconds with event handling
|
# Instead of time.sleep, wait for 2 seconds with event handling
|
||||||
wait_start = pygame.time.get_ticks()
|
wait_start = pygame.time.get_ticks()
|
||||||
waiting = True
|
waiting = True
|
||||||
while waiting:
|
while waiting:
|
||||||
|
|||||||
Reference in new issue
Block a user