summaryrefslogtreecommitdiff
path: root/game.tscn
blob: 448d938514732a31c3fef35bd7bbfda50ea369a8 (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[gd_scene load_steps=11 format=3 uid="uid://8ps5533ot84q"]

[ext_resource type="PackedScene" uid="uid://c2g45v321qddb" path="res://player.tscn" id="1_3q46r"]
[ext_resource type="Script" path="res://game.gd" id="1_7jh2q"]
[ext_resource type="Script" path="res://ColorRect.gd" id="1_kv47q"]
[ext_resource type="Texture2D" uid="uid://hqxnw5bd6q2c" path="res://genshinlogo.png" id="1_tfg20"]
[ext_resource type="PackedScene" uid="uid://4oytwe0gnp18" path="res://ui.tscn" id="2_3layq"]
[ext_resource type="Script" path="res://Genshinlogo.gd" id="2_8h31p"]
[ext_resource type="PackedScene" uid="uid://cns884oaxgoof" path="res://dicaprio.tscn" id="8_llto6"]
[ext_resource type="AudioStream" uid="uid://dqtjjgshbqn5j" path="res://bowhit.wav" id="9_3iyfb"]
[ext_resource type="AudioStream" uid="uid://c7pa506xccdyq" path="res://ost.ogg" id="9_bhhfh"]

[sub_resource type="Curve2D" id="Curve2D_txqas"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, -1024, -1024, 0, 0, 0, 0, 1024, -1024, 0, 0, 0, 0, 1024, 1024, 0, 0, 0, 0, -1024, 1024, 0, 0, 0, 0, -1024, -1024)
}
point_count = 5

[node name="Game" type="Node" node_paths=PackedStringArray("mob_spawn_location")]
script = ExtResource("1_7jh2q")
mob = ExtResource("8_llto6")
mob_spawn_location = NodePath("SpawnPath/SpawnLocation")

[node name="RestrBackground" type="ColorRect" parent="."]
z_index = -80
custom_minimum_size = Vector2(2048, 2048)
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -1664.0
offset_top = -1504.0
offset_right = 384.0
offset_bottom = 544.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)
script = ExtResource("1_kv47q")

[node name="CanvasUI" parent="." instance=ExtResource("2_3layq")]

[node name="Genshinlogo" type="Sprite2D" parent="."]
texture = ExtResource("1_tfg20")
script = ExtResource("2_8h31p")

[node name="Player" parent="." instance=ExtResource("1_3q46r")]
z_index = 1

[node name="Camera2D" type="Camera2D" parent="Player"]
editor_draw_screen = false

[node name="LargeBackground" type="ColorRect" parent="Player/Camera2D"]
z_index = -100
custom_minimum_size = Vector2(1600, 1200)
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -800.0
offset_top = -600.0
offset_right = 800.0
offset_bottom = 600.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)
script = ExtResource("1_kv47q")

[node name="Soundtrack" type="AudioStreamPlayer2D" parent="Player"]
stream = ExtResource("9_bhhfh")
autoplay = true

[node name="Coins" type="Node" parent="."]

[node name="SpawnPath" type="Path2D" parent="."]
curve = SubResource("Curve2D_txqas")

[node name="SpawnLocation" type="PathFollow2D" parent="SpawnPath"]
position = Vector2(-1024, -1024)

[node name="SpawnTimer" type="Timer" parent="."]
process_callback = 0
wait_time = 2.5
autostart = true

[node name="BowHit" type="AudioStreamPlayer" parent="."]
stream = ExtResource("9_3iyfb")

[connection signal="timeout" from="SpawnTimer" to="." method="_on_spawn_timer_timeout"]