74 lines
2.5 KiB
Text
74 lines
2.5 KiB
Text
|
|
[gd_scene load_steps=9 format=3 uid="uid://dpkr8yoobtej6"]
|
||
|
|
|
||
|
|
[ext_resource type="Script" uid="uid://bg4qx85we014d" path="res://main_menu/main_menu.gd" id="1_bws42"]
|
||
|
|
[ext_resource type="PackedScene" uid="uid://jjoyj1ldafkf" path="res://world/earth.tscn" id="1_oa53l"]
|
||
|
|
[ext_resource type="Script" uid="uid://colvx6wq0e8n7" path="res://world/building_generator.gd" id="2_d3a7t"]
|
||
|
|
[ext_resource type="Theme" uid="uid://dwlus1hjwtch4" path="res://large_theme.tres" id="3_3shxk"]
|
||
|
|
|
||
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_d3a7t"]
|
||
|
|
bg_color = Color(0, 0.7529412, 0, 1)
|
||
|
|
draw_center = false
|
||
|
|
corner_radius_top_left = 350
|
||
|
|
corner_radius_top_right = 350
|
||
|
|
corner_radius_bottom_right = 350
|
||
|
|
corner_radius_bottom_left = 350
|
||
|
|
|
||
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_3shxk"]
|
||
|
|
|
||
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_bws42"]
|
||
|
|
|
||
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_3f7m4"]
|
||
|
|
|
||
|
|
[node name="main" type="Node"]
|
||
|
|
script = ExtResource("1_bws42")
|
||
|
|
|
||
|
|
[node name="Earth" parent="." instance=ExtResource("1_oa53l")]
|
||
|
|
unique_name_in_owner = true
|
||
|
|
|
||
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
||
|
|
zoom = Vector2(0.12, 0.12)
|
||
|
|
|
||
|
|
[node name="Building Generator" type="Node" parent="."]
|
||
|
|
script = ExtResource("2_d3a7t")
|
||
|
|
initial_buildings = 250
|
||
|
|
initial_spawn_protection = false
|
||
|
|
|
||
|
|
[node name="Timer" type="Timer" parent="Building Generator"]
|
||
|
|
|
||
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||
|
|
|
||
|
|
[node name="Control" type="Control" parent="CanvasLayer"]
|
||
|
|
layout_mode = 3
|
||
|
|
anchors_preset = 15
|
||
|
|
anchor_right = 1.0
|
||
|
|
anchor_bottom = 1.0
|
||
|
|
grow_horizontal = 2
|
||
|
|
grow_vertical = 2
|
||
|
|
|
||
|
|
[node name="PanelContainer" type="PanelContainer" parent="CanvasLayer/Control"]
|
||
|
|
layout_mode = 1
|
||
|
|
anchors_preset = 8
|
||
|
|
anchor_left = 0.5
|
||
|
|
anchor_top = 0.5
|
||
|
|
anchor_right = 0.5
|
||
|
|
anchor_bottom = 0.5
|
||
|
|
offset_left = -350.0
|
||
|
|
offset_top = -350.0
|
||
|
|
offset_right = 350.0
|
||
|
|
offset_bottom = 350.0
|
||
|
|
grow_horizontal = 2
|
||
|
|
grow_vertical = 2
|
||
|
|
theme = ExtResource("3_3shxk")
|
||
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_d3a7t")
|
||
|
|
|
||
|
|
[node name="ButtonStart" type="Button" parent="CanvasLayer/Control/PanelContainer"]
|
||
|
|
layout_mode = 2
|
||
|
|
theme_type_variation = &"FlatButton"
|
||
|
|
theme_override_styles/pressed = SubResource("StyleBoxEmpty_3shxk")
|
||
|
|
theme_override_styles/hover = SubResource("StyleBoxEmpty_bws42")
|
||
|
|
theme_override_styles/focus = SubResource("StyleBoxEmpty_3f7m4")
|
||
|
|
text = "Play Again"
|
||
|
|
|
||
|
|
[connection signal="timeout" from="Building Generator/Timer" to="Building Generator" method="_on_timer_timeout"]
|
||
|
|
[connection signal="pressed" from="CanvasLayer/Control/PanelContainer/ButtonStart" to="." method="_on_button_start_pressed"]
|