]> Untitled Git - frog-ninja.git/blob - player/Move.gd
Fixed up moves
[frog-ninja.git] / player / Move.gd
1 extends Node
2 class_name Move
3
4 ###
5 # flags and variables here
6 var player: Player
7 var camera: Camera3D
8
9 # enums are prioritized by order of list
10 static var moves_priority: Dictionary = {
11         "idle": 0,
12         "walk": 1,
13         "dash": 2
14 }
15
16 static func moves_priority_sort(a: String, b: String):
17         return moves_priority[a] > moves_priority[b]
18
19 ###
20
21 func should_enter(_input: InputPacket) -> String:
22         print_debug("Function should_enter must be implemented in its child class!")
23         return ""
24
25
26 func update(_input: InputPacket, _delta: float):
27         pass
28
29
30 func on_enter_state():
31         pass
32
33
34 func on_exit_state():
35         pass