1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
[gd_scene load_steps=9 format=3 uid="uid://dqk3l801walv"]
[ext_resource type="Texture2D" uid="uid://cb0rokx0rstj0" path="res://stage/assets/Halloween_PumpkinPatch_Bright.png" id="1_fl4ys"]
[ext_resource type="Script" uid="uid://bu1yqgv7omm6u" path="res://stage/player_unit.gd" id="1_ijjix"]
[ext_resource type="Script" uid="uid://drs01qvt6fnrx" path="res://area_2d.gd" id="3_tgb43"]
[sub_resource type="AtlasTexture" id="AtlasTexture_fl4ys"]
atlas = ExtResource("1_fl4ys")
region = Rect2(0, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_tgb43"]
atlas = ExtResource("1_fl4ys")
region = Rect2(128, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_5ycgq"]
atlas = ExtResource("1_fl4ys")
region = Rect2(256, 0, 128, 128)
[sub_resource type="SpriteFrames" id="SpriteFrames_5ycgq"]
animations = [{
"frames": [{
"duration": 20.0,
"texture": SubResource("AtlasTexture_fl4ys")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tgb43")
}],
"loop": true,
"name": &"bottom_right",
"speed": 4.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_5ycgq")
}],
"loop": false,
"name": &"top_left",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_fl4ys"]
size = Vector2(10, 8.875)
[node name="PlayerUnit" type="Node2D"]
z_index = 2
script = ExtResource("1_ijjix")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(0, -3)
scale = Vector2(0.125, 0.125)
sprite_frames = SubResource("SpriteFrames_5ycgq")
animation = &"bottom_right"
[node name="Area2D" type="Area2D" parent="." node_paths=PackedStringArray("root_node")]
collision_layer = 4
collision_mask = 0
script = ExtResource("3_tgb43")
root_node = NodePath("..")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(0, -1)
shape = SubResource("RectangleShape2D_fl4ys")
[node name="Label" type="Label" parent="."]
offset_left = -5.0
offset_right = 5.0
offset_bottom = 23.0
text = "0"
|