mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-14 10:23:47 +00:00
75 lines
2.2 KiB
Text
75 lines
2.2 KiB
Text
[gd_scene load_steps=10 format=3 uid="uid://byms2dhliyux0"]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/Activables/Teleporter.cs" id="1_juavy"]
|
|
[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="CircleShape2D" id="CircleShape2D_kwj8m"]
|
|
radius = 4.12311
|
|
|
|
[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
|
|
}]
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_we5sc"]
|
|
particle_flag_disable_z = true
|
|
emission_shape = 2
|
|
emission_sphere_radius = 8.85
|
|
orbit_velocity_min = -0.2
|
|
orbit_velocity_max = 0.2
|
|
gravity = Vector3(0, -98, 0)
|
|
color = Color(0.207843, 0.360784, 1, 1)
|
|
|
|
[node name="Teleporter" type="Area2D"]
|
|
collision_mask = 2
|
|
script = ExtResource("1_juavy")
|
|
ParticleEmitTime = 0.8
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_kwj8m")
|
|
|
|
[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"
|
|
|
|
[node name="Particles" type="GPUParticles2D" parent="."]
|
|
emitting = false
|
|
amount = 50
|
|
process_material = SubResource("ParticleProcessMaterial_we5sc")
|
|
lifetime = 0.8
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|