mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-07-07 14:29:16 +00:00
Fixed exploding bug.
This commit is contained in:
parent
b9a4caba1f
commit
3549f8635f
@ -12,7 +12,7 @@
|
|||||||
!source "../include/mem.i"
|
!source "../include/mem.i"
|
||||||
!source "../include/plasma.i"
|
!source "../include/plasma.i"
|
||||||
|
|
||||||
DEBUG = 0 ; 1=some logging, 2=lots of logging
|
DEBUG = 1 ; 1=some logging, 2=lots of logging
|
||||||
|
|
||||||
HEADER_LENGTH=6
|
HEADER_LENGTH=6
|
||||||
SECTION_WIDTH=22
|
SECTION_WIDTH=22
|
||||||
@ -462,6 +462,7 @@ ROW_OFFSET = 3
|
|||||||
|
|
||||||
LDA DRAW_SECTION+1 ; skip if no map section here
|
LDA DRAW_SECTION+1 ; skip if no map section here
|
||||||
BNE .gotMap
|
BNE .gotMap
|
||||||
|
.noDraw
|
||||||
RTS
|
RTS
|
||||||
.gotMap
|
.gotMap
|
||||||
|
|
||||||
@ -477,10 +478,16 @@ ROW_OFFSET = 3
|
|||||||
+crout
|
+crout
|
||||||
}
|
}
|
||||||
LDA DRAW_HEIGHT
|
LDA DRAW_HEIGHT
|
||||||
|
BEQ .noDraw
|
||||||
|
BMI .noDraw
|
||||||
STA Y_COUNTER
|
STA Y_COUNTER
|
||||||
LDA DRAW_Y_START
|
LDA DRAW_Y_START
|
||||||
STA Y_LOC
|
STA Y_LOC
|
||||||
.rowLoop
|
.rowLoop
|
||||||
|
LDA DRAW_WIDTH
|
||||||
|
BEQ .noDraw
|
||||||
|
BMI .noDraw
|
||||||
|
STA X_COUNTER
|
||||||
; Identify start of map data (upper left)
|
; Identify start of map data (upper left)
|
||||||
; Self-modifying code: Update all the STA statements in the drawTile section
|
; Self-modifying code: Update all the STA statements in the drawTile section
|
||||||
LDA Y_LOC
|
LDA Y_LOC
|
||||||
@ -545,8 +552,6 @@ ROW_OFFSET = 3
|
|||||||
BCC .doneCalculatingLocation
|
BCC .doneCalculatingLocation
|
||||||
INC ROW_LOCATION + 1
|
INC ROW_LOCATION + 1
|
||||||
.doneCalculatingLocation
|
.doneCalculatingLocation
|
||||||
LDA DRAW_WIDTH
|
|
||||||
STA X_COUNTER
|
|
||||||
LDX DRAW_X_START
|
LDX DRAW_X_START
|
||||||
; Display row of tiles
|
; Display row of tiles
|
||||||
.next_col
|
.next_col
|
||||||
@ -655,7 +660,7 @@ INIT
|
|||||||
+ +loadAllTiles
|
+ +loadAllTiles
|
||||||
+finishLoad
|
+finishLoad
|
||||||
; set up the X and Y coordinates
|
; set up the X and Y coordinates
|
||||||
LDX #VIEWPORT_HORIZ_PAD+1
|
LDX #VIEWPORT_HORIZ_PAD
|
||||||
LDY #VIEWPORT_VERT_PAD
|
LDY #VIEWPORT_VERT_PAD
|
||||||
JSR SET_XY
|
JSR SET_XY
|
||||||
RTS
|
RTS
|
||||||
|
Loading…
Reference in New Issue
Block a user