Fix layer comparison function

This commit is contained in:
Lucas Scharenbroich 2021-08-14 21:09:35 -05:00
parent d9133a2170
commit 232f94d30e
4 changed files with 12 additions and 12 deletions

View File

@ -4,7 +4,7 @@
<export target="world_1-1.json" format="json"/>
</editorsettings>
<tileset firstgid="1" source="Overworld.tsx"/>
<layer id="3" name="App.TileMapBG1" width="256" height="30" visible="0" locked="1" parallaxx="0.5" parallaxy="0.5">
<layer id="3" name="App.TileMapBG1" width="256" height="30" locked="1" parallaxx="0.5" parallaxy="0.5">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,

View File

@ -4,15 +4,15 @@
; This is a generated file. Do not modify.
BG1SetUp
BG0SetUp
lda #256
sta BG1TileMapWidth
sta TileMapWidth
lda #30
sta BG1TileMapHeight
sta TileMapHeight
lda #App_TileMapBG0
sta BG1TileMapPtr
sta TileMapPtr
lda #^App_TileMapBG0
sta BG1TileMapPtr+2
sta TileMapPtr+2
rts
App_TileMapBG0

View File

@ -4,15 +4,15 @@
; This is a generated file. Do not modify.
BG0SetUp
BG1SetUp
lda #256
sta TileMapWidth
sta BG1TileMapWidth
lda #30
sta TileMapHeight
sta BG1TileMapHeight
lda #App_TileMapBG1
sta TileMapPtr
sta BG1TileMapPtr
lda #^App_TileMapBG1
sta TileMapPtr+2
sta BG1TileMapPtr+2
rts
App_TileMapBG1

View File

@ -132,7 +132,7 @@ async function main(argv) {
}
// Sort the tile layers by ID. The lower ID is considered to be the "front" layer
tileLayers.sort((first, second) => first.id <= second.id);
tileLayers.sort((first, second) => first.id - second.id);
// Load up any/all tilesets
const tileSets = await Promise.all(doc.tilesets.map(tileset => loadTileset(workdir, tileset)));