Files
dusk/tools/editortool/map/chunk.py
Dominic Masters cf59989167
All checks were successful
Build Dusk / build-linux (push) Successful in 50s
Build Dusk / build-psp (push) Successful in 59s
Closer to actually editing
2025-11-16 10:40:20 -06:00

14 lines
446 B
Python

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)