junglejourney

changeset 28:af6c0a43d773

Fixed the vertically offset 16x16 sprite plotting routine.
author David Boddie <david@boddie.org.uk>
date Tue Aug 16 02:11:30 2011 +0200
parents 167c8feb18fe
children 98510cf24d1f
files mapcode.oph
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/mapcode.oph	Tue Aug 16 01:49:17 2011 +0200
     1.2 +++ b/mapcode.oph	Tue Aug 16 02:11:30 2011 +0200
     1.3 @@ -848,7 +848,7 @@
     1.4          sta $71
     1.5          clc
     1.6  
     1.7 -        lda $72         ; subtract by 0x140 - 4 to plot the next top half row
     1.8 +        lda $72         ; add 0x140 - 4 to plot the next top half row
     1.9          adc #$3c
    1.10          sta $72
    1.11          lda $73
    1.12 @@ -856,10 +856,12 @@
    1.13          sta $73
    1.14          clc
    1.15  
    1.16 +        jmp plotloop16x16_y1_loop
    1.17 +
    1.18          plotloop16x16_y1_loop_next:
    1.19          clc
    1.20  
    1.21 -        lda $70             ; add 28 to start the next row
    1.22 +        lda $70         ; add 28 to start the next row
    1.23          adc #$1c
    1.24          sta $70
    1.25          lda $71
    1.26 @@ -867,7 +869,7 @@
    1.27          sta $71
    1.28          clc
    1.29  
    1.30 -        lda $72             ; add 4 to plot the next half row
    1.31 +        lda $72         ; add 4 to plot the next half row
    1.32          adc #4
    1.33          sta $72
    1.34          lda $73
    1.35 @@ -1717,7 +1719,7 @@
    1.36  ;    sta $330d
    1.37  ;    lda #3      ; y=3
    1.38  ;    sta $330e
    1.39 -;    lda #0      ; dy=0
    1.40 +;    lda #1      ; dy=1
    1.41  ;    sta $330f
    1.42  ;    lda #3      ; x=3
    1.43  ;    sta $3310