mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-13 05:52:24 +02:00
First changes
This commit is contained in:
@@ -102,6 +102,16 @@ func movement_roll():
|
||||
velocity = rollvector * ROLL_SPEED
|
||||
animation_state.travel("roll")
|
||||
|
||||
"""
|
||||
# Roll.gd
|
||||
func enter():
|
||||
owner.animation_state.travel("roll")
|
||||
|
||||
func update():
|
||||
owner.velocity = rollvector * ROLL_SPEED
|
||||
"""
|
||||
|
||||
|
||||
func roll_finished():
|
||||
movementState = moveState.MOVE
|
||||
|
||||
|
||||
@@ -707,6 +707,8 @@ __meta__ = {
|
||||
|
||||
[node name="Stats" parent="." instance=ExtResource( 5 )]
|
||||
max_health = 5
|
||||
|
||||
[node name="States" type="Node" parent="."]
|
||||
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
|
||||
[connection signal="area_entered" from="Hurtbox" to="." method="_on_Hurtbox_area_entered"]
|
||||
[connection signal="area_exited" from="Hurtbox" to="." method="_on_Hurtbox_area_exited"]
|
||||
|
||||
16
src/Player/States/Move.gd
Normal file
16
src/Player/States/Move.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
extends Node
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a = 2
|
||||
# var b = "text"
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta):
|
||||
# pass
|
||||
Reference in New Issue
Block a user