41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
[gd_scene format=3 uid="uid://byh115n12sgvt"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://d0tvtt4eu8jmt" path="res://art/block/portal.png" id="1_eumkw"]
|
|
[ext_resource type="Script" uid="uid://bjbxktiuqlh1f" path="res://teleporter.gd" id="1_tuehi"]
|
|
[ext_resource type="Texture2D" uid="uid://55ihxa2emnep" path="res://art/block/portal2.png" id="3_ahrse"]
|
|
[ext_resource type="Texture2D" uid="uid://d4a5x8gwhl2wc" path="res://art/block/portal3.png" id="4_cpfq8"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_tuehi"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("1_eumkw")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_ahrse")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_cpfq8")
|
|
}],
|
|
"loop": 1,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_7k7bx"]
|
|
radius = 9.0
|
|
|
|
[node name="Teleporter" type="Node2D" unique_id=1201409437]
|
|
script = ExtResource("1_tuehi")
|
|
|
|
[node name="Sprite2D" type="AnimatedSprite2D" parent="." unique_id=395479262]
|
|
sprite_frames = SubResource("SpriteFrames_tuehi")
|
|
autoplay = "default"
|
|
|
|
[node name="Area2D" type="Area2D" parent="Sprite2D" unique_id=2050186824]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Sprite2D/Area2D" unique_id=1560168165]
|
|
shape = SubResource("CircleShape2D_7k7bx")
|
|
|
|
[connection signal="body_entered" from="Sprite2D/Area2D" to="." method="_on_contact"]
|