Added spike animation and added new WIP World layout

This commit is contained in:
Jan Schuffenhauer
2020-04-20 18:11:16 +02:00
parent 336bc28dbd
commit fd2ca0911e
74 changed files with 1661 additions and 74 deletions

View File

@@ -177,15 +177,15 @@ func roll_finished():
func _on_Hurtbox_area_entered(area):
player_stats.health -= area.damage
if("damage" in area):
player_stats.health -= area.damage
if area.damage > 0:
damage_per_second += area.damage
pass
else:
heal_per_second += abs(area.damage)
pass
if area.damage > 0:
damage_per_second += area.damage
pass
else:
heal_per_second += abs(area.damage)
pass
func _on_Hurtbox_area_exited(area):
if area.damage > 0:

View File

@@ -619,19 +619,17 @@ height = 0.2
radius = 4.03497
height = 9.42006
[sub_resource type="CircleShape2D" id=51]
[sub_resource type="CircleShape2D" id=49]
radius = 13.3924
[sub_resource type="DynamicFont" id=50]
size = 12
font_data = ExtResource( 6 )
[node name="Player" type="KinematicBody2D" groups=[
"hero",
]]
collision_mask = 14
script = ExtResource( 1 )
ROLL_SPEED = 120
FRICTION = 270
@@ -724,7 +722,7 @@ damage = 0.0
[node name="CollisionShape2D" parent="Pivot/SwordRange" index="0"]
position = Vector2( 0, -4.56405 )
shape = SubResource( 51 )
shape = SubResource( 49 )
[node name="DebugLabel" type="Label" parent="."]
margin_left = -8.12021
@@ -738,7 +736,7 @@ __meta__ = {
}
[node name="Stats" parent="." instance=ExtResource( 5 )]
max_health = 5
max_health = 20
[node name="AnimationStates" type="Node" parent="."]
script = ExtResource( 15 )