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
bcdbd0a471
squirrel-battle
/
dungeonbattle
/
entities
/
player.py
6 lines
107 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
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