squirrel-battle/dungeonbattle/entities/player.py

19 lines
323 B
Python
Raw Normal View History

from ..interfaces import FightingEntity
2020-11-06 14:33:26 +00:00
class Player(FightingEntity):
maxhealth = 20
strength = 5
def move_up(self) -> None:
self.y -= 1
def move_down(self) -> None:
self.y += 1
def move_left(self) -> None:
self.x -= 1
def move_right(self) -> None:
self.x += 1