bovido/scripts/player_state.gd
Mathilde Grapin 7038d29d87 First commit
Add simple player movement with a finite state machine.
Add enemy that can move to target point.
Add ground through a tilemap and wall that player and enemy cannot
cross.
2023-06-11 23:38:54 +02:00

10 lines
142 B
GDScript

class_name PlayerState
extends State
var player: Player
func _ready():
await owner.ready
player = owner as Player
assert(player != null)