diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2025-04-27 13:44:22 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2025-04-27 13:44:22 +0200 |
commit | 5469cf7b6da512e48f3d614704e51cfdd6966f08 (patch) | |
tree | bc27fbdffa4d08fba55d231c0a2a2efb1d84d5e0 /guide.tscn |
Diffstat (limited to 'guide.tscn')
-rw-r--r-- | guide.tscn | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/guide.tscn b/guide.tscn new file mode 100644 index 0000000..c15a9c8 --- /dev/null +++ b/guide.tscn @@ -0,0 +1,117 @@ +[gd_scene load_steps=10 format=3 uid="uid://cik38e6miyh17"] + +[ext_resource type="Script" uid="uid://bm8spheg1euql" path="res://guide.gd" id="1_4mqed"] +[ext_resource type="Texture2D" uid="uid://bmra2qpibkr2u" path="res://assets/placeholders/6266.png" id="1_kce4j"] + +[sub_resource type="CircleShape2D" id="CircleShape2D_kce4j"] +radius = 9.0 + +[sub_resource type="Animation" id="Animation_4mqed"] +resource_name = "up" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:region_rect") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Rect2(144, 310, 16, 24)] +} + +[sub_resource type="Animation" id="Animation_feuw2"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:region_rect") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Rect2(144, 310, 16, 24)] +} + +[sub_resource type="Animation" id="Animation_gajip"] +resource_name = "down" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:region_rect") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Rect2(162, 310, 16, 24)] +} + +[sub_resource type="Animation" id="Animation_83y8a"] +resource_name = "left" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:region_rect") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Rect2(144, 336, 16, 24)] +} + +[sub_resource type="Animation" id="Animation_utvnm"] +resource_name = "right" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Sprite2D:region_rect") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Rect2(162, 336, 16, 24)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_gajip"] +_data = { +&"RESET": SubResource("Animation_feuw2"), +&"down": SubResource("Animation_gajip"), +&"left": SubResource("Animation_83y8a"), +&"right": SubResource("Animation_utvnm"), +&"up": SubResource("Animation_4mqed") +} + +[node name="Guide" type="Area2D" groups=["guide"]] +gravity_space_override = 1 +gravity = 300.0 +script = ExtResource("1_4mqed") + +[node name="Sprite2D" type="Sprite2D" parent="."] +texture = ExtResource("1_kce4j") +centered = false +region_enabled = true +region_rect = Rect2(144, 310, 16, 24) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2(8, 11) +shape = SubResource("CircleShape2D_kce4j") + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +&"": SubResource("AnimationLibrary_gajip") +} + +[node name="Timer" type="Timer" parent="."] +autostart = true + +[connection signal="body_entered" from="." to="." method="_on_body_entered"] +[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"] |