Mathilde Grapin
7038d29d87
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.
20 lines
246 B
GDScript
20 lines
246 B
GDScript
class_name State
|
|
extends Node
|
|
|
|
var state_machine = null
|
|
|
|
func handle_input(_event: InputEvent):
|
|
pass
|
|
|
|
func update(_delta: float):
|
|
pass
|
|
|
|
func physics_update(_delta: float):
|
|
pass
|
|
|
|
func enter(_msg: Dictionary = {}):
|
|
pass
|
|
|
|
func exit():
|
|
pass
|