Natural resource generator

This commit is contained in:
2025-08-27 23:20:29 +08:00
parent 3fd655a3e5
commit 359e1532d2
8 changed files with 168 additions and 12 deletions

View File

@@ -1,7 +1,8 @@
[gd_scene load_steps=5 format=3 uid="uid://c22aprj452aha"]
[gd_scene load_steps=6 format=3 uid="uid://c22aprj452aha"]
[ext_resource type="Script" uid="uid://cudpc3w17mbsw" path="res://Scripts/System/GridManager.cs" id="1_knkkn"]
[ext_resource type="Script" uid="uid://cfbj72nm0eovg" path="res://Scripts/System/BuildingRegistry.cs" id="1_sxhdm"]
[ext_resource type="Script" uid="uid://cugfbvw70clgd" path="res://Scripts/System/NaturalResourceGenerator.cs" id="2_oss8w"]
[ext_resource type="Script" uid="uid://bx1wj7gn6vrqe" path="res://Scripts/System/PlacementManager.cs" id="2_sxhdm"]
[ext_resource type="PackedScene" uid="uid://doxy60afddg1m" path="res://Scenes/Entities/Player.tscn" id="3_oss8w"]
@@ -10,6 +11,11 @@
[node name="BuildingRegistry" type="Node" parent="."]
script = ExtResource("1_sxhdm")
[node name="NaturalResourceGenerator" type="Node2D" parent="." node_paths=PackedStringArray("Grid", "Registry")]
script = ExtResource("2_oss8w")
Grid = NodePath("../GridSystem")
Registry = NodePath("../BuildingRegistry")
[node name="GridSystem" type="Node2D" parent="."]
script = ExtResource("1_knkkn")

View File

@@ -7,6 +7,7 @@
size = Vector2(54, 54)
[node name="GroundTile" type="StaticBody2D"]
collision_layer = 0
script = ExtResource("1_mqsaf")
[node name="Sprite2D" type="Sprite2D" parent="."]

View File

@@ -7,6 +7,7 @@
size = Vector2(54, 54)
[node name="StoneIronTile" type="StaticBody2D"]
collision_layer = 0
script = ExtResource("1_ewklp")
[node name="Sprite2D" type="Sprite2D" parent="."]

View File

@@ -7,6 +7,7 @@
size = Vector2(54, 54)
[node name="StoneTile" type="StaticBody2D"]
collision_layer = 0
script = ExtResource("1_rndy8")
[node name="Sprite2D" type="Sprite2D" parent="."]