First changes

This commit is contained in:
Paul Norberger
2020-04-19 08:53:49 +02:00
parent 3dc9b88237
commit d71b728e94
497 changed files with 424 additions and 8133 deletions

View File

@@ -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

View File

@@ -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
View 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