summaryrefslogtreecommitdiffstats
path: root/ps_init.gd
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-12-03 15:33:47 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-12-03 15:33:47 +0200
commit992e27742fc996bd428b04201f7548533761cfab (patch)
treee4afff26ac38a12967cf588f0a68ac608a8e1782 /ps_init.gd
parentac4b7f690ab70185349905baf8c8557dfc8e57ae (diff)
Open door with a cinematic
Diffstat (limited to 'ps_init.gd')
-rw-r--r--ps_init.gd7
1 files changed, 6 insertions, 1 deletions
diff --git a/ps_init.gd b/ps_init.gd
index df49da0..2312d66 100644
--- a/ps_init.gd
+++ b/ps_init.gd
@@ -5,7 +5,12 @@ func _to_string() -> String:
return "PlayerStateInit"
func _handle(_delta: float):
- pass
+ if p.velocity.x > 0:
+ p.anim_sp.flip_h = false
+ elif p.velocity.x < 0:
+ p.anim_sp.flip_h = true
+
+ p.anim_sp.set_animation("idle")
func _handle_physics(_delta: float):
pass