]> Untitled Git - frog-ninja.git/commitdiff
Fixed falling
authorClifton Palmer <clifton.james.palmer@protonmail.com>
Tue, 6 May 2025 14:28:05 +0000 (17:28 +0300)
committerClifton Palmer <clifton.james.palmer@protonmail.com>
Tue, 6 May 2025 14:28:05 +0000 (17:28 +0300)
player/moves/fall.gd [new file with mode: 0644]
player/moves/fall.gd.uid [new file with mode: 0644]

diff --git a/player/moves/fall.gd b/player/moves/fall.gd
new file mode 100644 (file)
index 0000000..034f41f
--- /dev/null
@@ -0,0 +1,11 @@
+extends Move
+class_name Fall
+
+
+func update(_input: InputPacket, delta: float):
+       player.velocity += player.get_gravity() * delta
+       player.move_and_slide()
+
+
+func on_enter_state():
+       player.skin.transition_falling()
diff --git a/player/moves/fall.gd.uid b/player/moves/fall.gd.uid
new file mode 100644 (file)
index 0000000..18ec41d
--- /dev/null
@@ -0,0 +1 @@
+uid://b0oj5iuvr8omo