generated from mwc/project_game
add asteroids
This project has sparked a interest in seeing what else i can creatate using coding
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user