GMTK-2024/gmtk_2024/objects/Goal.tscn

67 lines
2 KiB
Text
Raw Normal View History

2024-08-18 22:45:33 +02:00
[gd_scene load_steps=7 format=3 uid="uid://d0gpnqknarkg7"]
2024-08-17 18:09:22 +02:00
[ext_resource type="Script" path="res://scripts/goal.gd" id="1_xjaxa"]
[ext_resource type="Texture2D" uid="uid://fah747bo1ckk" path="res://textures/01-Portal-Sheet.png" id="2_hsts4"]
2024-08-18 22:45:33 +02:00
2024-08-19 01:29:43 +02:00
[sub_resource type="Animation" id="Animation_v2oub"]
length = 0.001
2024-08-18 22:45:33 +02:00
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame_coords")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
2024-08-19 01:29:43 +02:00
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
2024-08-18 22:45:33 +02:00
"update": 1,
2024-08-19 01:29:43 +02:00
"values": [Vector2i(0, 0)]
2024-08-18 22:45:33 +02:00
}
2024-08-19 01:29:43 +02:00
[sub_resource type="Animation" id="Animation_a6qt0"]
resource_name = "portal"
length = 0.55
loop_mode = 1
2024-08-18 22:45:33 +02:00
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame_coords")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
2024-08-19 01:29:43 +02:00
"times": PackedFloat32Array(0, 0.0666667, 0.133333, 0.2, 0.266667, 0.333333, 0.4, 0.466667),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
2024-08-18 22:45:33 +02:00
"update": 1,
2024-08-19 01:29:43 +02:00
"values": [Vector2i(0, 0), Vector2i(1, 0), Vector2i(2, 0), Vector2i(3, 0), Vector2i(4, 0), Vector2i(5, 0), Vector2i(6, 0), Vector2i(7, 0)]
2024-08-18 22:45:33 +02:00
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_4pqp1"]
_data = {
"RESET": SubResource("Animation_v2oub"),
"portal": SubResource("Animation_a6qt0")
}
2024-08-17 18:09:22 +02:00
[sub_resource type="CircleShape2D" id="CircleShape2D_fjcci"]
2024-08-18 22:45:33 +02:00
radius = 16.1245
2024-08-17 18:09:22 +02:00
2024-08-18 22:45:33 +02:00
[node name="Goal" type="Area2D"]
2024-08-17 18:35:40 +02:00
collision_layer = 0
collision_mask = 4
2024-08-17 18:09:22 +02:00
script = ExtResource("1_xjaxa")
2024-08-18 22:45:33 +02:00
[node name="Sprite2D" type="Sprite2D" parent="."]
2024-08-17 18:09:22 +02:00
z_index = -1
2024-08-18 22:45:33 +02:00
texture = ExtResource("2_hsts4")
hframes = 8
2024-08-17 18:09:22 +02:00
2024-08-18 22:45:33 +02:00
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_4pqp1")
}
2024-08-17 18:09:22 +02:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_fjcci")
2024-08-17 18:35:40 +02:00
2024-08-18 22:45:33 +02:00
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
2024-08-17 18:35:40 +02:00
[connection signal="body_entered" from="." to="." method="_on_body_entered"]