more debug

This commit is contained in:
Zutatensuppe 2021-04-15 12:42:47 +02:00
parent 6cecba5aa1
commit f567d0703b

View file

@ -666,7 +666,10 @@ async function main() {
// DRAW TILES // DRAW TILES
// --------------------------------------------------------------- // ---------------------------------------------------------------
for (let tile of Game.getTilesSortedByZIndex(gameId)) { const tiles = Game.getTilesSortedByZIndex(gameId)
if (DEBUG) Debug.checkpoint('get tiles done')
for (let tile of tiles) {
const bmp = bitmaps[tile.idx] const bmp = bitmaps[tile.idx]
pos = viewport.worldToViewportRaw({ pos = viewport.worldToViewportRaw({
x: TILE_DRAW_OFFSET + tile.pos.x, x: TILE_DRAW_OFFSET + tile.pos.x,