84 lines
2.9 KiB
Plaintext
84 lines
2.9 KiB
Plaintext
[gd_scene load_steps=9 format=2]
|
|
|
|
[ext_resource path="res://Hazards/Heater/Heater2.png" type="Texture" id=1]
|
|
[ext_resource path="res://Hazards/Heater/Heater3.png" type="Texture" id=2]
|
|
[ext_resource path="res://Hazards/Heater/Heater1.png" type="Texture" id=3]
|
|
[ext_resource path="res://Hazards/Heater/Heater.gd" type="Script" id=4]
|
|
|
|
[sub_resource type="SpriteFrames" id=2]
|
|
animations = [ {
|
|
"frames": [ ExtResource( 3 ), ExtResource( 1 ), ExtResource( 2 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="CapsuleShape2D" id=1]
|
|
radius = 81.0
|
|
height = 714.0
|
|
|
|
[sub_resource type="Animation" id=4]
|
|
resource_name = "drop"
|
|
length = 0.5
|
|
|
|
[sub_resource type="Animation" id=3]
|
|
resource_name = "recoil"
|
|
length = 2.1
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("Wire:rotation_degrees")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 0.3, 0.6, 0.9, 1, 1.1 ),
|
|
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
|
|
"update": 0,
|
|
"values": [ 0.0, -11.0, 5.0, 0.0, -1.0, 0.0 ]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/path = NodePath("Wire/AnimatedSprite:modulate")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/keys = {
|
|
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2, 2.1 ),
|
|
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
|
|
"update": 0,
|
|
"values": [ Color( 1, 1, 1, 1 ), Color( 1, 0, 0, 1 ), Color( 0, 0, 0, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 0, 0, 1 ), Color( 0, 0, 0, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 0, 0, 1 ), Color( 0, 0, 0, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 0, 0, 1 ), Color( 0, 0, 0, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 0, 0, 1 ), Color( 0, 0, 0, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 0, 0, 1 ), Color( 0, 0, 0, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 0, 0, 1 ), Color( 0, 0, 0, 1 ), Color( 1, 0.999998, 0.999998, 1 ) ]
|
|
}
|
|
|
|
[node name="Heater" type="Node2D"]
|
|
position = Vector2( 1665, 497 )
|
|
script = ExtResource( 4 )
|
|
|
|
[node name="Wire" type="Position2D" parent="."]
|
|
position = Vector2( 4, -482 )
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="Wire"]
|
|
position = Vector2( -1, 482 )
|
|
frames = SubResource( 2 )
|
|
|
|
[node name="Hitbox" type="Area2D" parent="Wire"]
|
|
position = Vector2( -4, 482 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wire/Hitbox"]
|
|
position = Vector2( 0, 29 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="InvulnTimer" type="Timer" parent="."]
|
|
wait_time = 2.1
|
|
one_shot = true
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
anims/drop = SubResource( 4 )
|
|
anims/recoil = SubResource( 3 )
|
|
|
|
[node name="TweenDrop" type="Tween" parent="."]
|
|
|
|
[node name="Position2D" type="Position2D" parent="."]
|
|
position = Vector2( -1399, 16 )
|
|
|
|
[connection signal="area_entered" from="Wire/Hitbox" to="." method="_on_Hitbox_area_entered"]
|