tighogg

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

commit
bf911f75576e15bdfbe0bc86d054e98ac3b7b03a
parent
97d65d0488800507a798a66fd587e2197fc70964
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2021-05-09 08:01
fix player center

Diffstat

M tighogg.py 2 +-

1 files changed, 1 insertions, 1 deletions


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

@@ -149,7 +149,7 @@ class Player:
  149   149                     .replace('\\', '/')
  150   150                     .replace('1', '\\')
  151   151                 )
  152    -1             x = round(self.x - camera) - 1 + len(line) - len(line.lstrip())
   -1   152             x = round(self.x - camera) - 3 + len(line) - len(line.lstrip())
  153   153             y = round(self.y - 3 + i)
  154   154             if x < 0:
  155   155                 continue