forked from team-sg/hero-mark-2
more work on final boss
This commit is contained in:
parent
3e3b327f5e
commit
0bae67fd3b
7 changed files with 196 additions and 24 deletions
|
@ -69,6 +69,7 @@ animations = [ {
|
|||
} ]
|
||||
|
||||
[node name="2600Explosion" type="Node2D"]
|
||||
z_index = 50
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
|
|
|
@ -2739,20 +2739,6 @@ tracks/18/keys = {
|
|||
"update": 0,
|
||||
"values": [ Vector2( 1e-05, 1e-05 ), Vector2( 1, 1 ) ]
|
||||
}
|
||||
tracks/19/type = "method"
|
||||
tracks/19/path = NodePath("../StateChart")
|
||||
tracks/19/interp = 1
|
||||
tracks/19/loop_wrap = true
|
||||
tracks/19/imported = false
|
||||
tracks/19/enabled = true
|
||||
tracks/19/keys = {
|
||||
"times": PoolRealArray( 2.9 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"values": [ {
|
||||
"args": [ "transformed" ],
|
||||
"method": "send_event"
|
||||
} ]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=24]
|
||||
resource_name = "punching"
|
||||
|
@ -4025,7 +4011,7 @@ shape = SubResource( 14 )
|
|||
|
||||
[node name="LowerJaw" type="CollisionShape2D" parent="Hitbox"]
|
||||
position = Vector2( -21.3082, -76.1166 )
|
||||
rotation = 1.66395
|
||||
rotation = 1.66396
|
||||
z_index = 100
|
||||
shape = SubResource( 15 )
|
||||
|
||||
|
|
|
@ -78,6 +78,13 @@ func set_energy(value: float) -> void:
|
|||
emit_signal("energy_changed", energy)
|
||||
|
||||
|
||||
func land(duck: bool) -> void:
|
||||
if duck:
|
||||
anims.play("Duck")
|
||||
else:
|
||||
anims.play("UnDuck")
|
||||
|
||||
|
||||
func shoot() -> void:
|
||||
set_energy(energy - bullet_energy)
|
||||
Audio.play_sound(Audio.a_bullet_barrage,Audio.ac_collectible)
|
||||
|
|
|
@ -241,7 +241,7 @@ tracks/3/keys = {
|
|||
"times": PoolRealArray( 0, 0.1, 0.2 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ -25.1199, -42.8239, -52.5731 ]
|
||||
"values": [ -25.1199, -42.8239, -52.6 ]
|
||||
}
|
||||
tracks/4/type = "value"
|
||||
tracks/4/path = NodePath("Axle/JointFront/LegFront/ShinFront:position")
|
||||
|
@ -265,7 +265,7 @@ tracks/5/keys = {
|
|||
"times": PoolRealArray( 0, 0.05, 0.1, 0.15, 0.2 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ 51.0254, 71.6413, 96.9236, 110.502, 129.974 ]
|
||||
"values": [ 51.0254, 71.6413, 96.9236, 110.502, 128.135 ]
|
||||
}
|
||||
tracks/6/type = "value"
|
||||
tracks/6/path = NodePath("Axle/JointFront/LegFront:position")
|
||||
|
@ -289,7 +289,7 @@ tracks/7/keys = {
|
|||
"times": PoolRealArray( 0, 0.05, 0.1, 0.15, 0.2 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ -26.8344, -38.9649, -54.4339, -63.1815, -77.3026 ]
|
||||
"values": [ -26.8344, -38.9649, -54.4339, -63.1815, -75.4293 ]
|
||||
}
|
||||
tracks/8/type = "value"
|
||||
tracks/8/path = NodePath("Axle/JointBack/LegBack/KneeBack/ShinBack/FootBack:position")
|
||||
|
@ -313,7 +313,7 @@ tracks/9/keys = {
|
|||
"times": PoolRealArray( 0, 0.1, 0.2 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ -25.1199, -42.6063, -52.1914 ]
|
||||
"values": [ -25.1199, -42.6063, -52.8 ]
|
||||
}
|
||||
tracks/10/type = "value"
|
||||
tracks/10/path = NodePath("Axle/JointBack/LegBack/KneeBack/ShinBack:position")
|
||||
|
@ -337,7 +337,7 @@ tracks/11/keys = {
|
|||
"times": PoolRealArray( 0, 0.05, 0.1, 0.15, 0.2 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ 51.0254, -5939.68, -82.9, 2.5, 130.023 ]
|
||||
"values": [ 51.0254, -5939.68, -82.9, 2.5, 128.421 ]
|
||||
}
|
||||
tracks/12/type = "value"
|
||||
tracks/12/path = NodePath("Axle/JointBack/LegBack/KneeBack:position")
|
||||
|
@ -385,7 +385,7 @@ tracks/15/keys = {
|
|||
"times": PoolRealArray( 0, 0.05, 0.1, 0.15, 0.2 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ -26.8344, -39.4117, -54.688, -63.5339, -77.4075 ]
|
||||
"values": [ -26.8344, -39.4117, -54.688, -63.5339, -76.1645 ]
|
||||
}
|
||||
tracks/16/type = "value"
|
||||
tracks/16/path = NodePath(".:safe_from_breath")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue