mirror of
https://github.com/lscharen/iigs-game-engine.git
synced 2025-02-18 07:30:30 +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"/>
|
<export target="world_1-1.json" format="json"/>
|
||||||
</editorsettings>
|
</editorsettings>
|
||||||
<tileset firstgid="1" source="Overworld.tsx"/>
|
<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">
|
<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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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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.
|
; This is a generated file. Do not modify.
|
||||||
|
|
||||||
|
|
||||||
BG1SetUp
|
BG0SetUp
|
||||||
lda #256
|
lda #256
|
||||||
sta BG1TileMapWidth
|
sta TileMapWidth
|
||||||
lda #30
|
lda #30
|
||||||
sta BG1TileMapHeight
|
sta TileMapHeight
|
||||||
lda #App_TileMapBG0
|
lda #App_TileMapBG0
|
||||||
sta BG1TileMapPtr
|
sta TileMapPtr
|
||||||
lda #^App_TileMapBG0
|
lda #^App_TileMapBG0
|
||||||
sta BG1TileMapPtr+2
|
sta TileMapPtr+2
|
||||||
rts
|
rts
|
||||||
|
|
||||||
App_TileMapBG0
|
App_TileMapBG0
|
||||||
|
@ -4,15 +4,15 @@
|
|||||||
; This is a generated file. Do not modify.
|
; This is a generated file. Do not modify.
|
||||||
|
|
||||||
|
|
||||||
BG0SetUp
|
BG1SetUp
|
||||||
lda #256
|
lda #256
|
||||||
sta TileMapWidth
|
sta BG1TileMapWidth
|
||||||
lda #30
|
lda #30
|
||||||
sta TileMapHeight
|
sta BG1TileMapHeight
|
||||||
lda #App_TileMapBG1
|
lda #App_TileMapBG1
|
||||||
sta TileMapPtr
|
sta BG1TileMapPtr
|
||||||
lda #^App_TileMapBG1
|
lda #^App_TileMapBG1
|
||||||
sta TileMapPtr+2
|
sta BG1TileMapPtr+2
|
||||||
rts
|
rts
|
||||||
|
|
||||||
App_TileMapBG1
|
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
|
// 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
|
// Load up any/all tilesets
|
||||||
const tileSets = await Promise.all(doc.tilesets.map(tileset => loadTileset(workdir, tileset)));
|
const tileSets = await Promise.all(doc.tilesets.map(tileset => loadTileset(workdir, tileset)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user