From 3726bcca0cc5426f6eac15ead12dd6ed831d0843 Mon Sep 17 00:00:00 2001 From: franvertedorhd Date: Sat, 12 Oct 2024 20:01:17 +0800 Subject: [PATCH] VCA Info Update --- VCA_INFO.md | 9 +++++++++ main.py | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/VCA_INFO.md b/VCA_INFO.md index e69de29..16cd55f 100644 --- a/VCA_INFO.md +++ b/VCA_INFO.md @@ -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/) \ No newline at end of file diff --git a/main.py b/main.py index a024124..9728206 100644 --- a/main.py +++ b/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()