This website requires JavaScript.
Explore
Help
Sign In
ynerant
/
squirrel-battle
Watch
1
Star
0
Fork
0
You've already forked squirrel-battle
Code
Issues
Pull Requests
Packages
Projects
Releases
3
Wiki
Activity
31ae39ab15
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
Reference in New Issue
Copy Permalink