From c6f6001e8fa89cd169751dd3e8e7bf61775a9882 Mon Sep 17 00:00:00 2001 From: Lucas Scharenbroich Date: Thu, 5 Aug 2021 21:19:43 -0500 Subject: [PATCH] Pull exported Tiled level data into the application; does not display anything yet --- src/App.Main.s | 14 +- src/Level.s | 496 +++++++++++++++++++++++++++++++++++++++++++++++++ src/Render.s | 6 + 3 files changed, 513 insertions(+), 3 deletions(-) create mode 100644 src/Level.s diff --git a/src/App.Main.s b/src/App.Main.s index d77bafc..1368254 100644 --- a/src/App.Main.s +++ b/src/App.Main.s @@ -124,6 +124,9 @@ NO_INTERRUPTS equ 0 ; turn off for crossrunner lda #0 jsr _ClearBG1Buffer +; Set up our level data + jsr BG0SetUp + ; Allocate room to load data jsr AllocOneBank2 ; Alloc 64KB for Load/Unpack @@ -131,9 +134,9 @@ NO_INTERRUPTS equ 0 ; turn off for crossrunner ldx #0 jsr SetScreenMode - jsr DoTiles - jsr DoLoadBG1 - jsr Demo +; jsr DoTiles +; jsr DoLoadBG1 +; jsr Demo EvtLoop jsr WaitForKey @@ -1197,3 +1200,8 @@ qtRec adrl $0000 put blitter/Vert.s put blitter/BG1.s PUT TileMap.s + PUT Level.s + + + + diff --git a/src/Level.s b/src/Level.s new file mode 100644 index 0000000..bae822e --- /dev/null +++ b/src/Level.s @@ -0,0 +1,496 @@ +; Tiled Map Export +; +; This is a generated file. Do not modify. + +BG0SetUp + lda #256 + sta TileMapWidth + lda #30 + sta TileMapHeight + lda #Tile_Layer_1 + sta TileMapPtr + lda #^Tile_Layer_1 + sta TileMapPtr+2 + rts + +Tile_Layer_1 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,11,12,13,14 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,15,16,17,18 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,11,12,13,14 + dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,57,58,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,15,16,17,18 + dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,56,21,62,59,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,11,12,13,14,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 + dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,56,21,21,21,21,59,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,57,58,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,15,16,17,18,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 + dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,56,21,62,21,21,62,21,59,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,42,43,42,43,42,43,41,41 + dw 41,56,21,62,59,41,41,41,41,41,41,41,41,41,41,41 + dw 42,43,41,41,41,41,41,41,19,20,21,22,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 + dw 41,41,41,41,42,43,42,43,41,41,41,41,19,20,21,22 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 56,21,21,21,21,21,21,21,21,59,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,44,45,45,45,45,45,45,46,41 + dw 56,21,21,21,21,59,41,41,41,41,41,41,41,41,41,44 + dw 45,45,46,41,41,41,41,41,19,20,21,22,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,19,20,21,22 + dw 41,41,41,44,45,45,45,45,46,41,41,41,19,20,21,22 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 + dw 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4 diff --git a/src/Render.s b/src/Render.s index e67a59b..634b1e7 100644 --- a/src/Render.s +++ b/src/Render.s @@ -69,6 +69,10 @@ Render ; jsr _ApplyBG1YPos ; Adjust the index values into the BG1 bank buffer ; jsr _ApplyBG1XPos ; Adjust the direct page pointers to the BG1 bank +; Copy any tiles that have come into view + + jsr _UpdateBG0TileMap + ; The code fields are locked in now and reder to be rendered jsr ShadowOff @@ -92,3 +96,5 @@ Render jsr _RestoreBG0Opcodes rts + +