Closer to actually editing
All checks were successful
Build Dusk / build-linux (push) Successful in 50s
Build Dusk / build-psp (push) Successful in 59s

This commit is contained in:
2025-11-16 10:40:20 -06:00
parent 7c194ab4b4
commit cf59989167
10 changed files with 306 additions and 120 deletions

View File

@@ -0,0 +1,14 @@
from editortool.map.chunk import Tile
class Chunk:
def __init__(self, x=0, y=0, z=0, size_x=1, size_y=1, size_z=1):
self.x = x
self.y = y
self.z = z
self.data = [[[Tile() for _ in range(size_z)] for _ in range(size_y)] for _ in range(size_x)]
def draw(self):
for x in range(len(self.data)):
for y in range(len(self.data[x])):
for z in range(len(self.data[x][y])):
self.data[x][y][z].draw(x, y, z)