-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tscn
58 lines (45 loc) · 2.57 KB
/
main.tscn
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
[gd_scene load_steps=12 format=3 uid="uid://2es5r0qb648v"]
[ext_resource type="Script" path="res://main.gd" id="1_80j6s"]
[ext_resource type="PackedScene" uid="uid://bxjksy0kiuaw1" path="res://player.tscn" id="1_dw3u3"]
[ext_resource type="Texture2D" uid="uid://6ixshqtk2ep1" path="res://assets/grass.png" id="1_oui06"]
[ext_resource type="PackedScene" uid="uid://b0uh2fqvwl2bn" path="res://coin.tscn" id="2_uve2q"]
[ext_resource type="PackedScene" uid="uid://brt5wy1fkr3xi" path="res://powerup.tscn" id="3_4utf0"]
[ext_resource type="PackedScene" uid="uid://c04d55sj08oq5" path="res://cactus.tscn" id="4_nxw6i"]
[ext_resource type="PackedScene" uid="uid://cn0i5oise2qj0" path="res://hud.tscn" id="5_amaby"]
[ext_resource type="AudioStream" uid="uid://bjmrrk77pt0qq" path="res://assets/audio/Coin.wav" id="6_fbrxk"]
[ext_resource type="AudioStream" uid="uid://bargk63phvyaf" path="res://assets/audio/Level.wav" id="7_k30mr"]
[ext_resource type="AudioStream" uid="uid://d1k1a8gjpxu86" path="res://assets/audio/EndSound.wav" id="8_bi4du"]
[ext_resource type="AudioStream" uid="uid://xmvubqhoeqx8" path="res://assets/audio/Powerup.wav" id="8_hhlli"]
[node name="Main" type="Node"]
script = ExtResource("1_80j6s")
coin_scene = ExtResource("2_uve2q")
powerup_scene = ExtResource("3_4utf0")
cactus_scene = ExtResource("4_nxw6i")
[node name="Background" type="TextureRect" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("1_oui06")
stretch_mode = 1
[node name="Player" parent="." instance=ExtResource("1_dw3u3")]
[node name="GameTimer" type="Timer" parent="."]
[node name="PowerUpTimer" type="Timer" parent="."]
one_shot = true
[node name="LevelNameTimer" type="Timer" parent="."]
[node name="HUD" parent="." instance=ExtResource("5_amaby")]
[node name="CoinSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("6_fbrxk")
volume_db = -20.0
[node name="LevelSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("7_k30mr")
[node name="EndSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("8_bi4du")
[node name="PowerUpSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("8_hhlli")
[connection signal="hurt" from="Player" to="." method="_on_player_hurt"]
[connection signal="pickup" from="Player" to="." method="_on_player_pickup"]
[connection signal="timeout" from="GameTimer" to="." method="_on_game_timer_timeout"]
[connection signal="timeout" from="PowerUpTimer" to="." method="_on_power_up_timer_timeout"]
[connection signal="start_game" from="HUD" to="." method="_on_hud_start_game"]