mirror of
https://github.com/tonytins/citylimits
synced 2025-06-25 09:24:44 -04:00
Merge Kenny's City Builder Starter Kit
This commit is contained in:
parent
dd04a01651
commit
36edaaf17b
510 changed files with 2236 additions and 7925 deletions
|
@ -1,13 +0,0 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://bbputgwi8xsfd"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bslfk5as420f7" path="res://scenes/item_select.tscn" id="1_rtv6q"]
|
||||
|
||||
[node name="Game" type="Node"]
|
||||
|
||||
[node name="Level" type="Node2D" parent="."]
|
||||
|
||||
[node name="Editor" type="Node2D" parent="."]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Editor"]
|
||||
|
||||
[node name="ItemSelect" parent="." instance=ExtResource("1_rtv6q")]
|
35
scenes/interface.tscn
Normal file
35
scenes/interface.tscn
Normal file
|
@ -0,0 +1,35 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://cxivns71gahtk"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bng0d1sou7c8a" path="res://sprites/coin.png" id="1_yv17j"]
|
||||
[ext_resource type="FontFile" uid="uid://d0cxd77jybrcn" path="res://fonts/lilita_one_regular.ttf" id="2_6eq3h"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_q176i"]
|
||||
font = ExtResource("2_6eq3h")
|
||||
font_size = 24
|
||||
shadow_color = Color(0, 0, 0, 0.392157)
|
||||
|
||||
[node name="Interface" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Wallet" type="HBoxContainer" parent="."]
|
||||
layout_mode = 0
|
||||
anchor_left = 0.0190972
|
||||
anchor_top = 0.0277778
|
||||
anchor_right = 0.211806
|
||||
anchor_bottom = 0.109568
|
||||
|
||||
[node name="CashIcon" type="TextureRect" parent="Wallet"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("1_yv17j")
|
||||
expand_mode = 3
|
||||
|
||||
[node name="Cash" type="Label" parent="Wallet"]
|
||||
layout_mode = 2
|
||||
text = "$10,000"
|
||||
label_settings = SubResource("LabelSettings_q176i")
|
|
@ -1,38 +0,0 @@
|
|||
[gd_scene format=3 uid="uid://bslfk5as420f7"]
|
||||
|
||||
[node name="ItemSelect" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_vertical = 10
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="TabContainer" type="TabContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_top = 0.830247
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Zones" type="TabBar" parent="TabContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="TabContainer/Zones"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/Zones/ScrollContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="TabContainer/Zones/ScrollContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
|
@ -1,85 +0,0 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://82qi4wgni4ac"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/license_gui.gd" id="1_esldu"]
|
||||
[ext_resource type="Script" path="res://addons/simplelicense/api/LicenseManager.gd" id="2_cpb2k"]
|
||||
|
||||
[node name="LicenseGUI" type="Control"]
|
||||
custom_minimum_size = Vector2(256, 256)
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_esldu")
|
||||
load_locations = Array[String](["res://licenses", "res://addons/simplelicense/mod_example/licenses/"])
|
||||
export_locations = Array[String](["user://licenses/game/", "user://licenses/mods/mod_1/"])
|
||||
|
||||
[node name="LicenseManager" type="Node" parent="."]
|
||||
script = ExtResource("2_cpb2k")
|
||||
|
||||
[node name="background" type="Panel" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.381076
|
||||
anchor_right = 0.461806
|
||||
anchor_bottom = 0.0401235
|
||||
offset_left = 3.05176e-05
|
||||
grow_horizontal = 2
|
||||
text = "License Info"
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Tree" type="Tree" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.00694444
|
||||
anchor_top = 0.0462963
|
||||
anchor_right = 0.404514
|
||||
anchor_bottom = 0.987654
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 2
|
||||
hide_root = true
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Text" type="TextEdit" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.434028
|
||||
anchor_top = 0.0462963
|
||||
anchor_right = 0.993056
|
||||
anchor_bottom = 0.987654
|
||||
offset_left = -8.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 3
|
||||
editable = false
|
||||
scroll_smooth = true
|
||||
minimap_draw = true
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="op_locations" type="OptionButton" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.00694444
|
||||
anchor_top = 0.00308642
|
||||
anchor_right = 0.172743
|
||||
anchor_bottom = 0.0416667
|
||||
theme_override_font_sizes/font_size = 12
|
||||
item_count = 2
|
||||
popup/item_0/text = "a"
|
||||
popup/item_0/id = 0
|
||||
popup/item_1/text = "b"
|
||||
popup/item_1/id = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[connection signal="item_activated" from="Tree" to="." method="_on_tree_item_activated"]
|
||||
[connection signal="item_selected" from="Tree" to="." method="_on_tree_item_selected"]
|
||||
[connection signal="item_selected" from="op_locations" to="." method="_on_op_locations_item_selected"]
|
31
scenes/main-environment.tres
Normal file
31
scenes/main-environment.tres
Normal file
|
@ -0,0 +1,31 @@
|
|||
[gd_resource type="Environment" load_steps=3 format=3 uid="uid://jbptgqvstei3"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_lg8b7"]
|
||||
sky_horizon_color = Color(0.67451, 0.682353, 0.698039, 1)
|
||||
sky_curve = 0.0175
|
||||
ground_bottom_color = Color(1, 1, 1, 1)
|
||||
ground_curve = 0.171484
|
||||
|
||||
[sub_resource type="Sky" id="Sky_7bk1c"]
|
||||
sky_material = SubResource("ProceduralSkyMaterial_lg8b7")
|
||||
|
||||
[resource]
|
||||
background_mode = 1
|
||||
background_color = Color(0.560784, 0.592157, 0.670588, 1)
|
||||
sky = SubResource("Sky_7bk1c")
|
||||
ambient_light_source = 2
|
||||
ambient_light_color = Color(0.662745, 0.694118, 0.772549, 1)
|
||||
ambient_light_energy = 0.75
|
||||
tonemap_mode = 2
|
||||
ssao_enabled = true
|
||||
ssao_radius = 0.25
|
||||
ssao_intensity = 0.5
|
||||
ssao_power = 100.0
|
||||
ssao_horizon = 0.1
|
||||
sdfgi_cascades = 1
|
||||
sdfgi_max_distance = 25.6
|
||||
sdfgi_energy = 0.5
|
||||
glow_levels/2 = 0.6
|
||||
glow_levels/3 = 0.6
|
||||
glow_levels/5 = 0.0
|
||||
glow_intensity = 2.0
|
63
scenes/main2d.tscn
Normal file
63
scenes/main2d.tscn
Normal file
|
@ -0,0 +1,63 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://bliiefbfmdvs2"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/builder.gd" id="1_0v0e8"]
|
||||
[ext_resource type="Texture2D" uid="uid://bng0d1sou7c8a" path="res://sprites/coin.png" id="2_thubv"]
|
||||
[ext_resource type="Texture2D" uid="uid://cbk07cxgshg26" path="res://sprites/selector.png" id="2_xat7u"]
|
||||
[ext_resource type="FontFile" uid="uid://d0cxd77jybrcn" path="res://fonts/lilita_one_regular.ttf" id="3_twyvq"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_i6wk0"]
|
||||
font = ExtResource("3_twyvq")
|
||||
font_size = 24
|
||||
shadow_color = Color(0, 0, 0, 0.392157)
|
||||
|
||||
[node name="Main2D" type="Node2D"]
|
||||
|
||||
[node name="Builder" type="Node2D" parent="." node_paths=PackedStringArray("selector", "selector_container", "view_camera", "cash_display")]
|
||||
script = ExtResource("1_0v0e8")
|
||||
selector = NodePath("Selector")
|
||||
selector_container = NodePath("Selector/Container")
|
||||
view_camera = NodePath("../View/Camera2D")
|
||||
cash_display = NodePath("../CanvasLayer/Interface/Wallet/Cash")
|
||||
|
||||
[node name="Selector" type="Node2D" parent="Builder"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Builder/Selector"]
|
||||
position = Vector2(682, 450)
|
||||
texture = ExtResource("2_xat7u")
|
||||
|
||||
[node name="Container" type="Node2D" parent="Builder/Selector"]
|
||||
|
||||
[node name="View" type="Node2D" parent="."]
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="View"]
|
||||
position = Vector2(566, 362)
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="Interface" type="Control" parent="CanvasLayer"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Wallet" type="HBoxContainer" parent="CanvasLayer/Interface"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.0190972
|
||||
anchor_top = 0.0277778
|
||||
anchor_right = 0.211806
|
||||
anchor_bottom = 0.109568
|
||||
|
||||
[node name="CashIcon" type="TextureRect" parent="CanvasLayer/Interface/Wallet"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_thubv")
|
||||
expand_mode = 3
|
||||
|
||||
[node name="Cash" type="Label" parent="CanvasLayer/Interface/Wallet"]
|
||||
layout_mode = 2
|
||||
text = "$10,000"
|
||||
label_settings = SubResource("LabelSettings_i6wk0")
|
93
scenes/main3d.tscn
Normal file
93
scenes/main3d.tscn
Normal file
|
@ -0,0 +1,93 @@
|
|||
[gd_scene load_steps=23 format=3 uid="uid://vgwrcfy1qawf"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/3d/builder3d.gd" id="1_jybm7"]
|
||||
[ext_resource type="Environment" uid="uid://jbptgqvstei3" path="res://scenes/main-environment.tres" id="1_yndf3"]
|
||||
[ext_resource type="Resource" uid="uid://dv14kkhb6umkv" path="res://structures/road-straight.tres" id="2_bwyku"]
|
||||
[ext_resource type="Resource" uid="uid://d2jplegnkl6u2" path="res://structures/road-corner.tres" id="3_6fpyf"]
|
||||
[ext_resource type="Resource" uid="uid://mxrnqinnsqnt" path="res://structures/road-straight-lightposts.tres" id="3_o6o81"]
|
||||
[ext_resource type="Resource" uid="uid://ch8vtcpine1lc" path="res://structures/pavement.tres" id="4_b632v"]
|
||||
[ext_resource type="Texture2D" uid="uid://cbk07cxgshg26" path="res://sprites/selector.png" id="4_wr1wv"]
|
||||
[ext_resource type="Resource" uid="uid://cntgl86ianngh" path="res://structures/building-small-a.tres" id="5_v5o2m"]
|
||||
[ext_resource type="Resource" uid="uid://c5fveedgvunju" path="res://structures/building-small-b.tres" id="6_f4603"]
|
||||
[ext_resource type="Resource" uid="uid://cqvwy36htu81" path="res://structures/road-split.tres" id="7_kqu4g"]
|
||||
[ext_resource type="Resource" uid="uid://dveu4dnue0d54" path="res://structures/road-intersection.tres" id="8_1swhv"]
|
||||
[ext_resource type="Resource" uid="uid://dqqe3iofnleup" path="res://structures/pavement-fountain.tres" id="8_4il2q"]
|
||||
[ext_resource type="Script" path="res://scripts/3d/view.gd" id="8_yovpv"]
|
||||
[ext_resource type="Resource" uid="uid://tm532uesguhk" path="res://structures/grass.tres" id="9_ifw7y"]
|
||||
[ext_resource type="Resource" uid="uid://bh65eqgid4kxy" path="res://structures/building-small-c.tres" id="10_84or2"]
|
||||
[ext_resource type="Resource" uid="uid://ccb475jeg7ym5" path="res://structures/grass-trees.tres" id="10_vaeah"]
|
||||
[ext_resource type="Resource" uid="uid://dtal0tl2ee336" path="res://structures/building-small-d.tres" id="12_8obn7"]
|
||||
[ext_resource type="Resource" uid="uid://y6jafhfnhbrp" path="res://structures/grass-trees-tall.tres" id="13_t5d2v"]
|
||||
[ext_resource type="Resource" uid="uid://bqb6g3t0tebno" path="res://structures/building-garage.tres" id="13_ut2cy"]
|
||||
[ext_resource type="FontFile" uid="uid://d0cxd77jybrcn" path="res://fonts/lilita_one_regular.ttf" id="16_vlub6"]
|
||||
[ext_resource type="Texture2D" uid="uid://bng0d1sou7c8a" path="res://sprites/coin.png" id="17_cjamx"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_q176i"]
|
||||
font = ExtResource("16_vlub6")
|
||||
font_size = 24
|
||||
shadow_color = Color(0, 0, 0, 0.392157)
|
||||
|
||||
[node name="Main" type="Node3D"]
|
||||
|
||||
[node name="Builder" type="Node3D" parent="." node_paths=PackedStringArray("selector", "selector_container", "view_camera", "gridmap", "cash_display")]
|
||||
script = ExtResource("1_jybm7")
|
||||
structures = Array[Resource("res://scripts/3d/structure.gd")]([ExtResource("2_bwyku"), ExtResource("3_o6o81"), ExtResource("3_6fpyf"), ExtResource("7_kqu4g"), ExtResource("8_1swhv"), ExtResource("4_b632v"), ExtResource("8_4il2q"), ExtResource("5_v5o2m"), ExtResource("6_f4603"), ExtResource("10_84or2"), ExtResource("12_8obn7"), ExtResource("13_ut2cy"), ExtResource("9_ifw7y"), ExtResource("10_vaeah"), ExtResource("13_t5d2v")])
|
||||
selector = NodePath("Selector")
|
||||
selector_container = NodePath("Selector/Container")
|
||||
view_camera = NodePath("../View/Camera")
|
||||
gridmap = NodePath("../GridMap")
|
||||
cash_display = NodePath("../CanvasLayer/Control/Cash")
|
||||
|
||||
[node name="Selector" type="Node3D" parent="Builder"]
|
||||
|
||||
[node name="Sprite" type="Sprite3D" parent="Builder/Selector"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.06, 0)
|
||||
texture = ExtResource("4_wr1wv")
|
||||
|
||||
[node name="Container" type="Node3D" parent="Builder/Selector"]
|
||||
|
||||
[node name="View" type="Node3D" parent="."]
|
||||
transform = Transform3D(0.707107, -0.40558, 0.579228, 0, 0.819152, 0.573576, -0.707107, -0.40558, 0.579228, 0, 0, 0)
|
||||
script = ExtResource("8_yovpv")
|
||||
|
||||
[node name="Camera" type="Camera3D" parent="View"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 30)
|
||||
environment = ExtResource("1_yndf3")
|
||||
fov = 20.0
|
||||
|
||||
[node name="GridMap" type="GridMap" parent="."]
|
||||
cell_size = Vector3(1, 1, 1)
|
||||
cell_center_x = false
|
||||
cell_center_y = false
|
||||
cell_center_z = false
|
||||
|
||||
[node name="Sun" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.422618, -0.694272, 0.582563, 0, 0.642788, 0.766044, -0.906308, 0.323744, -0.271654, 0, 0, 0)
|
||||
shadow_enabled = true
|
||||
shadow_opacity = 0.75
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="Control" type="Control" parent="CanvasLayer"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="CashIcon" type="TextureRect" parent="CanvasLayer/Control"]
|
||||
layout_mode = 0
|
||||
offset_left = 20.0
|
||||
offset_top = 24.0
|
||||
offset_right = 148.0
|
||||
offset_bottom = 152.0
|
||||
scale = Vector2(0.3, 0.3)
|
||||
texture = ExtResource("17_cjamx")
|
||||
|
||||
[node name="Cash" type="Label" parent="CanvasLayer/Control"]
|
||||
layout_mode = 0
|
||||
offset_left = 69.0
|
||||
offset_top = 27.0
|
||||
offset_right = 270.0
|
||||
offset_bottom = 101.0
|
||||
text = "$10,000"
|
||||
label_settings = SubResource("LabelSettings_q176i")
|
Loading…
Add table
Add a link
Reference in a new issue