-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.tscn
91 lines (76 loc) · 2.8 KB
/
game.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
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
91
[gd_scene load_steps=7 format=3 uid="uid://b1ky6fnni1db0"]
[ext_resource type="PackedScene" uid="uid://cjbswlasmknyp" path="res://player/player.tscn" id="1_buf4i"]
[ext_resource type="Script" path="res://game.gd" id="1_scpoh"]
[ext_resource type="PackedScene" uid="uid://dflvk0w8lohh2" path="res://world/world.tscn" id="2_oyrxy"]
[ext_resource type="Texture2D" uid="uid://bymbse5m82vwi" path="res://ui/life_indicator.png" id="4_61t5r"]
[ext_resource type="FontFile" uid="uid://bl0kpcm0xylnf" path="res://ui/kenney_blocks.ttf" id="4_287wc"]
[ext_resource type="PackedScene" uid="uid://uqhef72lbfka" path="res://ui/game_over_screen.tscn" id="6_qfqdy"]
[node name="Game" type="Node2D"]
script = ExtResource("1_scpoh")
[node name="World" parent="." instance=ExtResource("2_oyrxy")]
[node name="Player" parent="." instance=ExtResource("1_buf4i")]
position = Vector2(168, 128)
[node name="Camera" type="Camera2D" parent="Player"]
current = true
zoom = Vector2(4, 4)
[node name="Control" type="Control" parent="Player"]
layout_mode = 3
anchors_preset = 0
offset_top = -20.0
offset_bottom = -20.0
[node name="HBoxContainer" type="HBoxContainer" parent="Player/Control"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -2.0
offset_top = -4.0
offset_right = 2.0
grow_horizontal = 2
grow_vertical = 0
theme_override_constants/separation = 2
alignment = 1
[node name="TextureRect" type="TextureRect" parent="Player/Control/HBoxContainer"]
layout_mode = 2
offset_right = 4.0
offset_bottom = 4.0
texture = ExtResource("4_61t5r")
stretch_mode = 2
[node name="TextureRect2" type="TextureRect" parent="Player/Control/HBoxContainer"]
layout_mode = 2
offset_left = 6.0
offset_right = 10.0
offset_bottom = 4.0
texture = ExtResource("4_61t5r")
stretch_mode = 2
[node name="TextureRect3" type="TextureRect" parent="Player/Control/HBoxContainer"]
layout_mode = 2
offset_left = 12.0
offset_right = 16.0
offset_bottom = 4.0
texture = ExtResource("4_61t5r")
stretch_mode = 2
[node name="Timer" type="Timer" parent="."]
wait_time = 10.0
autostart = true
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="GameOverScreen" parent="CanvasLayer" instance=ExtResource("6_qfqdy")]
process_mode = 2
[node name="TimerLabel" type="Label" parent="CanvasLayer"]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -20.0
offset_right = 20.0
offset_bottom = 23.0
grow_horizontal = 2
size_flags_horizontal = 4
theme_override_colors/font_color = Color(0.486275, 0.0941176, 0.235294, 1)
theme_override_fonts/font = ExtResource("4_287wc")
theme_override_font_sizes/font_size = 64
text = "10.00"
horizontal_alignment = 1
[connection signal="player_hurt" from="Player" to="." method="_on_player_player_hurt"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]