mirror of
https://github.com/lscharen/iigs-game-engine.git
synced 2024-11-22 11:34:14 +00:00
Fix layer comparison function
This commit is contained in:
parent
d9133a2170
commit
232f94d30e
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user