cirnogodot/Scenes/teleporter.tscn
2025-01-22 15:09:04 +01:00

57 lines
1.6 KiB
Text

[gd_scene load_steps=8 format=3 uid="uid://byms2dhliyux0"]
[ext_resource type="Texture2D" uid="uid://d3e762pxublbt" path="res://Sprites/teleporter.png" id="1_ppqan"]
[ext_resource type="Texture2D" uid="uid://dcrsv00yf6ylk" path="res://Sprites/Teleport_Particles.png" id="2_ggtec"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uk8yj"]
size = Vector2(16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ex07d"]
atlas = ExtResource("2_ggtec")
region = Rect2(0, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_1jqq2"]
atlas = ExtResource("2_ggtec")
region = Rect2(16, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_wbhur"]
atlas = ExtResource("2_ggtec")
region = Rect2(32, 0, 16, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_bt8wx"]
animations = [{
"frames": [],
"loop": true,
"name": &"Idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ex07d")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1jqq2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wbhur")
}],
"loop": true,
"name": &"Teleporting",
"speed": 5.0
}]
[node name="Teleporter" type="Area2D"]
collision_layer = 4
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
shape = SubResource("RectangleShape2D_uk8yj")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_ppqan")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(0, -9)
sprite_frames = SubResource("SpriteFrames_bt8wx")
animation = &"Idle"