A very very simple game written by C, only use to explain the principle of Finite State Machine
As I said above, nothing is complex, just a simple game about how a hero try to kill the only slime in the forest. Player control the hero and a FSM automatically control the slime.
- Above: Game Board
- Map, 4 by 4
- H: HERO
- S: SLIME
- #: TREES OR GRASS
-
Middle: The sentences in the middle are discriptions of either what slime has done or what happened after hero made choice.
-
Bottom: The attribute board of hero and slime
Input the character below:
- WASD - movement
- Q - attack(why you want to attak a lovely slime? uh?)
- E - growth(this means hero stays in the same block and his hp or ap can +1)
(I will be back to add this soon.....)