add asteroids

This project has sparked a interest in seeing what else i can creatate using coding
This commit is contained in:
tsmith37
2025-12-09 20:02:49 -05:00
parent 35ed9eb328
commit 69138c8466
5 changed files with 15 additions and 18 deletions

View File

@@ -9,7 +9,6 @@ class Shooter:
self.position = (0, 0)
def handle_keystroke(self, keystroke, game):
if keystroke == ' ' and not self.display:
ship = game.get_agent_by_name('ship')
if ship is None:
@@ -23,9 +22,7 @@ class Shooter:
self.display = True
def play_turn(self, game):
if not self.display:
return
x, y = self.position