◆
Python Game Course
‹
Day 5 · Your Own Things
›
1
2
3
4
5
6
7
8
⤴ Share
your_game.py
saved
↺ Reset
▶ Run
# You want aliens with HEALTH: three hits before they're gone. # A Sprite has no .hp. The "obvious" fix is a SECOND list: enemies = [Sprite("🛸"), Sprite("🛸"), Sprite("🛸")] hps = [3, 3, 3] # enemies[0]'s health is hps[0]. enemies[1]'s is hps[1]. You just # have to keep them lined up. Forever. By hand. What could go wrong?
Your Game
🎮 Your game
🎬 Replay
Press
▶ Run
to start your game
Booting…