Prep ent
Some checks failed
Build Dusk / build-linux (push) Failing after 55s
Build Dusk / build-psp (push) Failing after 56s

This commit is contained in:
2025-11-20 16:45:50 -06:00
parent 51a1077fda
commit 3697cc3eef
7 changed files with 185 additions and 26 deletions

View File

@@ -177,27 +177,6 @@ class Tile:
def buffer(self, vertexBuffer):
if self.shape == TILE_SHAPE_NULL:
return
# Old code:
# if self.x != 0 or self.y != 0 or self.z != 0:
# return # Only buffer the tile at (0,0,0)
# Center tile.
# x = self.posX - TILE_WIDTH / 2.0
# y = self.posY - TILE_HEIGHT / 2.0
# z = self.posZ - TILE_DEPTH / 2.0
# w = TILE_WIDTH
# h = TILE_HEIGHT
# d = TILE_DEPTH
# # Quad on the XY plane at z
# vertexBuffer.vertices.extend([
# x, y, z, # bottom left
# x + w, y, z, # bottom right
# x + w, y + h, z, # top right
# x, y, z, # bottom left
# x + w, y + h, z, # top right
# x, y + h, z # top left
# ])
# New code:
baseData = self.getBaseTileModel()