Editor has chunk loading
Some checks failed
Build Dusk / build-linux (push) Failing after 57s
Build Dusk / build-psp (push) Failing after 1m0s

This commit is contained in:
2025-11-23 22:44:31 -06:00
parent 7daeaee6b5
commit f9006a90d5
5 changed files with 86 additions and 3 deletions

View File

@@ -32,6 +32,14 @@ class Chunk:
# Update vertices
self.tileUpdateVertices()
def reload(self, newX, newY, newZ):
self.x = newX
self.y = newY
self.z = newZ
for tile in self.tiles.values():
tile.chunkReload(newX, newY, newZ)
self.load()
def tileUpdateVertices(self):
self.vertexBuffer.clear()
for tile in self.tiles.values():