feat: Make building random on instantiation

This commit is contained in:
Dendy 2026-03-05 22:01:32 +01:00
parent f442613e85
commit c5fc132699
2 changed files with 994 additions and 937 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,7 @@
[gd_scene format=3 uid="uid://m45422rsfnmh"] [gd_scene format=3 uid="uid://m45422rsfnmh"]
[ext_resource type="Script" uid="uid://dixivehd47h0o" path="res://spawn.gd" id="1_3a72r"] [ext_resource type="Script" uid="uid://dixivehd47h0o" path="res://spawn.gd" id="1_3a72r"]
[ext_resource type="PackedScene" uid="uid://da60ofnpg72ua" path="res://building.tscn" id="2_yqulk"]
[sub_resource type="PlaneMesh" id="PlaneMesh_kdh3y"] [sub_resource type="PlaneMesh" id="PlaneMesh_kdh3y"]
size = Vector2(150, 150) size = Vector2(150, 150)
@ -14,3 +15,6 @@ script = ExtResource("1_3a72r")
[node name="Mesh" type="MeshInstance3D" parent="." unique_id=651037282] [node name="Mesh" type="MeshInstance3D" parent="." unique_id=651037282]
mesh = SubResource("PlaneMesh_kdh3y") mesh = SubResource("PlaneMesh_kdh3y")
surface_material_override/0 = SubResource("StandardMaterial3D_eoxb4") surface_material_override/0 = SubResource("StandardMaterial3D_eoxb4")
[node name="Building" parent="." unique_id=228050854 instance=ExtResource("2_yqulk")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -46.942894, 1.6992264, -36.10958)