add state machine and have player use it
This commit is contained in:
8
godot/characters/player/states/Fall.gdns
Normal file
8
godot/characters/player/states/Fall.gdns
Normal file
@@ -0,0 +1,8 @@
|
||||
[gd_resource type="NativeScript" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://gdnative/alai.tres" type="GDNativeLibrary" id=1]
|
||||
|
||||
[resource]
|
||||
resource_name = "PlayerFall"
|
||||
class_name = "PlayerFall"
|
||||
library = ExtResource( 1 )
|
8
godot/characters/player/states/Idle.gdns
Normal file
8
godot/characters/player/states/Idle.gdns
Normal file
@@ -0,0 +1,8 @@
|
||||
[gd_resource type="NativeScript" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://gdnative/alai.tres" type="GDNativeLibrary" id=1]
|
||||
|
||||
[resource]
|
||||
resource_name = "PlayerIdle"
|
||||
class_name = "PlayerIdle"
|
||||
library = ExtResource( 1 )
|
8
godot/characters/player/states/Jump.gdns
Normal file
8
godot/characters/player/states/Jump.gdns
Normal file
@@ -0,0 +1,8 @@
|
||||
[gd_resource type="NativeScript" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://gdnative/alai.tres" type="GDNativeLibrary" id=1]
|
||||
|
||||
[resource]
|
||||
resource_name = "PlayerJump"
|
||||
class_name = "PlayerJump"
|
||||
library = ExtResource( 1 )
|
8
godot/characters/player/states/Move.gdns
Normal file
8
godot/characters/player/states/Move.gdns
Normal file
@@ -0,0 +1,8 @@
|
||||
[gd_resource type="NativeScript" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://gdnative/alai.tres" type="GDNativeLibrary" id=1]
|
||||
|
||||
[resource]
|
||||
resource_name = "PlayerMove"
|
||||
class_name = "PlayerMove"
|
||||
library = ExtResource( 1 )
|
Reference in New Issue
Block a user