mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-19 00:20:20 +02:00
First changes
This commit is contained in:
12
src/Boss/SlimeBoss/States/Motion/Idle.gd
Normal file
12
src/Boss/SlimeBoss/States/Motion/Idle.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
extends "res://Boss/SlimeBoss/States/Motion/MotionState.gd"
|
||||
|
||||
func enter():
|
||||
owner.get_node("AnimationPlayer").play("MoveDown") # TODO: Replace animation
|
||||
|
||||
func handle_input(event):
|
||||
return .handle_input(event)
|
||||
|
||||
func update(delta):
|
||||
var input_direction = get_input_direction()
|
||||
if input_direction:
|
||||
emit_signal("finished", "move")
|
||||
Reference in New Issue
Block a user