(client) feat: Improve map generation logic (#36)

Co-authored-by: zzdxxz <2079238449@qq.com>
Co-committed-by: zzdxxz <2079238449@qq.com>
This commit is contained in:
2025-07-15 15:26:58 +08:00
committed by TheRedApricot
parent a662ecd2c9
commit 55cf9d954e
64 changed files with 2545 additions and 278 deletions

View File

@ -1,3 +1,5 @@
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.Tilemaps;
@ -7,15 +9,24 @@ namespace Map
{
public Tilemap dataLevel;
public Tilemap textureLevel;
public Dictionary<string, TileBase> tileDict = new();
void Start()
{
}
// Update is called once per frame
void Update()
{
tileDict = Configs.ConfigProcessor.LoadResources<TileBase>("TileMap");
var tile= tileDict.Values;
for (int i = 0; i < 100; i++)
{
for (int j = 0; j < 100; j++)
{
textureLevel.SetTile(new(i,j),tile.First());
}
}
}
}
public class TileMappingTable:Utils.Singleton<TileMappingTable>
{
}
}