sturr doggo

This commit is contained in:
Jonas Mucke
2020-04-19 20:31:14 +02:00
parent 1a58a9689e
commit e21a065b60
7 changed files with 126 additions and 69 deletions

View File

@@ -49,7 +49,7 @@ func _physics_process(delta):
while(totaldamage < -1):
totaldamage+=1
player_stats.health+=1
#adjustPrio(player_stats.health, player_stats.max_health)
adjustPrio(player_stats.health, player_stats.max_health)
_debug_update()
if debug == true:
match movementState:
@@ -160,7 +160,8 @@ func movement_roll():
func roll_finished():
movementState = moveState.IDLE
ExecutionState = AI_MOVE
ai_movement_state = STEP
ExecutionState = EXECUTING
func _on_Hurtbox_area_entered(area):

View File

@@ -8,9 +8,8 @@
[ext_resource path="res://Fonts/Harmonic/Harmonic.ttf" type="DynamicFontData" id=6]
[ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=7]
[sub_resource type="CapsuleShape2D" id=1]
radius = 2.15976
height = 3.85866
[sub_resource type="CircleShape2D" id=50]
radius = 3.0
[sub_resource type="Animation" id=2]
resource_name = "HitDown"
@@ -622,6 +621,7 @@ script = ExtResource( 1 )
FRICTION = 270
[node name="Kind" parent="." instance=ExtResource( 7 )]
general = 4
kind = 1
[node name="Sprite" type="Sprite" parent="."]
@@ -633,9 +633,9 @@ hframes = 60
frame = 12
[node name="Body" type="CollisionShape2D" parent="."]
position = Vector2( -0.0470657, -0.609329 )
position = Vector2( 0.0107212, 0.0456073 )
rotation = 1.5708
shape = SubResource( 1 )
shape = SubResource( 50 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/HitDown = SubResource( 2 )
@@ -671,7 +671,7 @@ collision_layer = 0
collision_mask = 32
[node name="CollisionShape2D" parent="Hitbox" index="0"]
position = Vector2( 0, -0.5 )
position = Vector2( -0.0192623, 0.000833511 )
shape = SubResource( 46 )
[node name="Hurtbox" parent="." instance=ExtResource( 3 )]
@@ -679,7 +679,7 @@ position = Vector2( 0, 0.0375252 )
collision_mask = 0
[node name="CollisionShape2D" parent="Hurtbox" index="0"]
position = Vector2( 0, -0.5 )
position = Vector2( 1.90735e-06, 0.000833988 )
shape = SubResource( 47 )
[node name="Pivot" type="Position2D" parent="."]