Refactoring of the Class and new generation Algorithm. Grid generation.

This commit is contained in:
gdz
2025-08-26 18:15:16 +02:00
parent 1fae8c07d3
commit 1116487c10
2 changed files with 220 additions and 150 deletions

View File

@@ -1,8 +1,9 @@
[gd_scene load_steps=6 format=3 uid="uid://brbhyuelsuxyx"]
[gd_scene load_steps=7 format=3 uid="uid://brbhyuelsuxyx"]
[ext_resource type="Texture2D" uid="uid://d0brwy88sjvv1" path="res://art/world/grasv2.png" id="1_f3sb7"]
[ext_resource type="Script" uid="uid://ctanguxj2uhw7" path="res://scenes/world/World.cs" id="1_rwgxs"]
[ext_resource type="PackedScene" uid="uid://drwdehf7caidt" path="res://scenes/spawner/spawner.tscn" id="3_1fp7r"]
[ext_resource type="Script" uid="uid://cqrt5x30j5vm6" path="res://scenes/main/grid.gd" id="4_6m72w"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_0xm2m"]
texture = ExtResource("1_f3sb7")
@@ -17,7 +18,6 @@ sources/0 = SubResource("TileSetAtlasSource_0xm2m")
[node name="World" type="Node2D"]
script = ExtResource("1_rwgxs")
algorithm = 1
metadata/_edit_group_ = true
[node name="TileMapLayer" type="TileMapLayer" parent="."]
@@ -25,7 +25,12 @@ texture_filter = 1
tile_set = SubResource("TileSet_h2yge")
[node name="Spawner" parent="." instance=ExtResource("3_1fp7r")]
position = Vector2(50, 50)
[node name="GenerationTimeout" type="Timer" parent="."]
one_shot = true
[node name="Grid" type="Node2D" parent="."]
script = ExtResource("4_6m72w")
show_debug = true
[node name="Debug" type="Node2D" parent="Grid"]