tighogg

fighting game for the terminal
git clone https://git.ce9e.org/tighogg.git

commit
c8227fe546cbd0ec032cea6e4100a3d936d3002d
parent
a5f1f852ae8633a1dfd9f4ad714c37ed92dd039d
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2021-05-09 15:29
win condition

Diffstat

M tighogg.py 7 +++++++

1 files changed, 7 insertions, 0 deletions


diff --git a/tighogg.py b/tighogg.py

@@ -265,6 +265,13 @@ class Game:
  265   265                     player.step()
  266   266                     player.cooldown -= 1
  267   267 
   -1   268                 if self.leader.base_direction == LEFT:
   -1   269                     if self.leader.x < 0:
   -1   270                         self.running = False
   -1   271                 else:
   -1   272                     if self.leader.x > self.map.size:
   -1   273                         self.running = False
   -1   274 
  268   275                 # die on out-of-screen
  269   276                 if abs(self.straggler.x - self.leader.x) > self.cols:
  270   277                     self.straggler.die()