feat: Improve stone layer visibility and rendering
This commit is contained in:
10
js/main.js
10
js/main.js
@@ -47,6 +47,16 @@ window.onload = function() {
|
||||
|
||||
// Initialize the first chunk and generate terrain around it
|
||||
getOrCreateChunk(0, 0);
|
||||
|
||||
// Explicitly create and mark the stone layer as dirty
|
||||
for (let dx = -5; dx <= 5; dx++) {
|
||||
const chunkX = dx;
|
||||
const chunkY = 1; // Stone layer
|
||||
const key = getChunkKey(chunkX, chunkY);
|
||||
getOrCreateChunk(chunkX, chunkY);
|
||||
dirtyChunks.add(key);
|
||||
}
|
||||
|
||||
generateChunksAroundPlayer();
|
||||
|
||||
// Start the simulation loop
|
||||
|
||||
Reference in New Issue
Block a user