This website requires JavaScript.
Explore
Help
Sign In
ynerant
/
squirrel-battle
Watch
1
Star
0
Fork
You've already forked squirrel-battle
0
Code
Issues
Pull Requests
Packages
Projects
Releases
3
Wiki
Activity
60d6c7509a
squirrel-battle
/
dungeonbattle
/
entities
/
player.py
7 lines
108 B
Python
Raw
Normal View
History
Unescape
Escape
Deleted unwanted code in Player It isn't the player's role to check whether they can move to a tile, check it beforehands and use the move method from its Entity superclass.
2020-10-23 14:17:48 +00:00
from
.
.
interfaces
import
FightingEntity
A basic fighting mechanic and a few entities
2020-10-16 15:58:00 +00:00
Linting
2020-11-06 14:33:26 +00:00
A basic fighting mechanic and a few entities
2020-10-16 15:58:00 +00:00
class
Player
(
FightingEntity
)
:
maxhealth
=
20
added player actions for going up, down, left and right
2020-10-23 13:15:37 +00:00
strength
=
5