VCA Info Update
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# Pygame Zero resources
|
||||
|
||||
## Documentation
|
||||
**Introduction to Pygame Zero:** [https://pygame-zero.readthedocs.io/en/stable/introduction.html](https://pygame-zero.readthedocs.io/en/stable/introduction.html)
|
||||
|
||||
|
||||
## Game tutorials
|
||||
**Pygame Zero Basics:** [https://quirkycort.github.io/tutorials/20-Pygame-Zero-Basics/20-Gem/10-first.html](https://quirkycort.github.io/tutorials/20-Pygame-Zero-Basics/20-Gem/10-first.html)
|
||||
**Pygame Zero Helper Library:** [https://www.aposteriori.com.sg/pygame-zero-helper/](https://www.aposteriori.com.sg/pygame-zero-helper/)
|
||||
3
main.py
3
main.py
@@ -187,7 +187,7 @@ def update():
|
||||
powerups.remove(powerup)
|
||||
|
||||
def draw():
|
||||
global game_over_played
|
||||
global game_over_played, powerup_time
|
||||
screen.fill((0, 0, 0))
|
||||
background.draw()
|
||||
health_bar.draw()
|
||||
@@ -208,6 +208,7 @@ def draw():
|
||||
for laser in lasers:
|
||||
laser.draw()
|
||||
else:
|
||||
powerup_time = -1
|
||||
powerups.clear()
|
||||
meteors.clear()
|
||||
explosions.clear()
|
||||
|
||||
Reference in New Issue
Block a user