Module mob.mummy
Mummy class, subclass of Mob .
A creepy ancient mummy!
LIFE = 200
SPEED = 25
STATE = 'stop|walk'
State machine
Mummy:_stopState (dt) | “stop” state of the state machine. |
Mummy:_walkState (dt) | “walk” state of the state machine. |
Class Mummy
Mummy:initialize (x, y, level) | Initialize the object Mummy . |
State machine
State machine.- Mummy:_stopState (dt)
-
“stop” state of the state machine. The Mummy is stoped.
Parameters:
- dt delta time
- Mummy:_walkState (dt)
-
“walk” state of the state machine. The mummy is walking.
Parameters:
- dt delta time
Class Mummy
Mummy Class, subclass of Mob- Mummy:initialize (x, y, level)
-
Initialize the object Mummy .
Don’t call this method directly!, this method is called automatically when the class is instanciated using the method new.
Parameters:
- x world x coordinate
- y world y coordinate
- level Level where the object belongs
Usage:
Mummy:new(x,y,level)