diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-30 13:04:39 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-30 13:04:39 +0200 |
commit | acfac65f17a274d6d7f73cb44ed9476032241134 (patch) | |
tree | 0ef93c0d81171a6be751e3edd8d4a029f1095fcc /src/sliceitoff/game/gameplay.py | |
parent | 607c00bc57fb68572754404cb5da0e7f7a5618e5 (diff) |
lint, refactor, doc, repeat
Diffstat (limited to 'src/sliceitoff/game/gameplay.py')
-rw-r--r-- | src/sliceitoff/game/gameplay.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sliceitoff/game/gameplay.py b/src/sliceitoff/game/gameplay.py index ef708c4..5a14767 100644 --- a/src/sliceitoff/game/gameplay.py +++ b/src/sliceitoff/game/gameplay.py @@ -7,15 +7,13 @@ class Gameplay: self, player = None, field = None, - status = None, enemies = None, stats = None): - self.status = status self.player = player self.field = field self.enemies = enemies self.stats = stats - + def fire(self): """ Lazer is fired. Actions to be taken. """ zap_sprite = self.field.slice( @@ -33,9 +31,10 @@ class Gameplay: return self.stats.percent < 20 def quit(self): + """ Lose lives so no leveling up """ self.stats.lives = 0 return True - + def step(self): """ Processes events for the step (frame) """ for event in pygame.event.get(): |