54 lines
1.8 KiB
Plaintext
54 lines
1.8 KiB
Plaintext
[gd_scene format=3 uid="uid://dr8h8xij3qw2h"]
|
|
|
|
[ext_resource type="Script" uid="uid://bh588bpddschq" path="res://pharaoh.gd" id="1_mt7kg"]
|
|
[ext_resource type="Texture2D" uid="uid://b2nldodte5p6s" path="res://art/sarco_closed.png" id="2_mt7kg"]
|
|
[ext_resource type="Texture2D" uid="uid://d0cd1alr8k706" path="res://art/interact_button.png" id="3_6vea8"]
|
|
[ext_resource type="Texture2D" uid="uid://b7t1tef0syf74" path="res://art/sarco_open.png" id="3_r6lmd"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_xwxqv"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_mt7kg")
|
|
}],
|
|
"loop": 1,
|
|
"name": &"closed",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_r6lmd")
|
|
}],
|
|
"loop": 1,
|
|
"name": &"open",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_eumkw"]
|
|
size = Vector2(26, 32)
|
|
|
|
[node name="Pharaoh" type="Node2D" unique_id=1201409437 groups=["sarcophagi"]]
|
|
script = ExtResource("1_mt7kg")
|
|
|
|
[node name="Sprite2D" type="AnimatedSprite2D" parent="." unique_id=834105031]
|
|
position = Vector2(0, -16)
|
|
sprite_frames = SubResource("SpriteFrames_xwxqv")
|
|
animation = &"closed"
|
|
autoplay = "closed"
|
|
frame_progress = 0.3689026
|
|
|
|
[node name="Area2D" type="Area2D" parent="Sprite2D" unique_id=2050186824]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Sprite2D/Area2D" unique_id=1560168165]
|
|
shape = SubResource("RectangleShape2D_eumkw")
|
|
|
|
[node name="ButtonPrompt" type="Sprite2D" parent="Sprite2D" unique_id=1864817335]
|
|
visible = false
|
|
position = Vector2(0, -24)
|
|
scale = Vector2(0.8, 0.8)
|
|
texture = ExtResource("3_6vea8")
|
|
|
|
[connection signal="interacted" from="." to="." method="_on_interacted"]
|
|
[connection signal="body_entered" from="Sprite2D/Area2D" to="." method="_on_approach"]
|
|
[connection signal="body_exited" from="Sprite2D/Area2D" to="." method="_on_abandon"]
|