-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.tscn
122 lines (96 loc) · 3.4 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[gd_scene load_steps=17 format=2]
[ext_resource path="res://icon.png" type="Texture" id=1]
[ext_resource path="res://input_handler.gd" type="Script" id=2]
[ext_resource path="res://Player.gd" type="Script" id=3]
[ext_resource path="res://Lava.tscn" type="PackedScene" id=4]
[ext_resource path="res://LavaPool.gd" type="Script" id=5]
[ext_resource path="res://World.gd" type="Script" id=6]
[ext_resource path="res://UnitManager.gd" type="Script" id=7]
[ext_resource path="res://HealthBar.gd" type="Script" id=8]
[ext_resource path="res://UI.gd" type="Script" id=9]
[ext_resource path="res://Enemie.tscn" type="PackedScene" id=10]
[ext_resource path="res://Score.gd" type="Script" id=11]
[ext_resource path="res://EnemieGold.tscn" type="PackedScene" id=12]
[sub_resource type="Gradient" id=1]
colors = PoolColorArray( 0.492188, 0.153809, 0.153809, 1, 0.127792, 0.209466, 0.488281, 1 )
[sub_resource type="GradientTexture2D" id=2]
gradient = SubResource( 1 )
[sub_resource type="RectangleShape2D" id=9]
extents = Vector2( 32, 32 )
[sub_resource type="StyleBoxFlat" id=8]
bg_color = Color( 0.180392, 0.537255, 0, 1 )
[node name="Main" type="Node2D"]
script = ExtResource( 2 )
[node name="Background" type="CanvasLayer" parent="."]
layer = -1
[node name="TextureRect" type="TextureRect" parent="Background"]
anchor_right = 1.0
anchor_bottom = 1.0
texture = SubResource( 2 )
expand = true
[node name="World" type="Node2D" parent="."]
script = ExtResource( 6 )
[node name="LavaPool" type="Node2D" parent="World"]
script = ExtResource( 5 )
__meta__ = {
"_edit_lock_": true
}
[node name="Lava" parent="World/LavaPool" instance=ExtResource( 4 )]
[node name="UnitManager" type="Node2D" parent="World"]
script = ExtResource( 7 )
__meta__ = {
"_edit_lock_": true
}
[node name="Enemie" parent="World/UnitManager" instance=ExtResource( 10 )]
[node name="EnemieGold" parent="World/UnitManager" instance=ExtResource( 12 )]
position = Vector2( 320, 432 )
[node name="Player" type="Node2D" parent="World/UnitManager"]
position = Vector2( 240, 280 )
script = ExtResource( 3 )
[node name="Sprite" type="Sprite" parent="World/UnitManager/Player"]
texture = ExtResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="KinematicBody2D" type="KinematicBody2D" parent="World/UnitManager/Player"]
__meta__ = {
"_edit_lock_": true
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="World/UnitManager/Player/KinematicBody2D"]
shape = SubResource( 9 )
__meta__ = {
"_edit_lock_": true
}
[node name="Node2D" type="Node2D" parent="World"]
[node name="UI" type="CanvasLayer" parent="."]
script = ExtResource( 9 )
[node name="HealthBar" type="Control" parent="UI"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 8 )
[node name="ProgressBar" type="ProgressBar" parent="UI/HealthBar"]
margin_right = 256.0
margin_bottom = 64.0
rect_min_size = Vector2( 256, 64 )
custom_styles/fg = SubResource( 8 )
max_value = 5.0
value = 5.0
[node name="Score" type="Control" parent="UI"]
margin_top = 64.0
margin_right = 40.0
margin_bottom = 104.0
script = ExtResource( 11 )
[node name="HBoxContainer" type="HBoxContainer" parent="UI/Score"]
margin_right = 40.0
margin_bottom = 40.0
[node name="Label" type="Label" parent="UI/Score/HBoxContainer"]
margin_top = 13.0
margin_right = 39.0
margin_bottom = 27.0
text = "Score:"
[node name="Score" type="Label" parent="UI/Score/HBoxContainer"]
margin_left = 43.0
margin_top = 13.0
margin_right = 51.0
margin_bottom = 27.0
text = "0"