mode7: update scroll demo

still not smooth
This commit is contained in:
Vince Weaver 2017-12-14 12:44:27 -05:00
parent a65c7b9d8f
commit 8657ed35d4
2 changed files with 8 additions and 7 deletions

View File

@ -13,12 +13,12 @@
;===============
lda #0
sta DISP_PAGE
sta TEMP
sta ANGLE
scroll_loop:
ldx #0
ldy TEMP
ldy ANGLE
lda DISP_PAGE
beq draw_page2
@ -81,16 +81,16 @@ sm4:
; loop forever
;==================
clc
lda TEMP
lda ANGLE
adc #40
cmp scroll_length
bne blah
lda #0
sta TEMP
sta ANGLE
jmp scroll_loop
blah:
inc TEMP
inc ANGLE
jmp scroll_loop ; 3
;===============================================

View File

@ -24,6 +24,7 @@ flying_start:
jsr clear_screens
jsr set_gr_page0
; Initialize the 2kB of multiply lookup tables
jsr init_multiply_tables
;===============
@ -44,13 +45,13 @@ flying_start:
sta SPEED
sta SPLASH_COUNT
lda #1
lda #1 ; slightly off North for better view of island
sta ANGLE
lda #2 ; initialize sky both pages
sta DRAW_SKY
lda #4 ; starts out at 4.5
lda #4 ; starts out at 4.5 altitude
sta SPACEZ_I
lda #$80
sta SPACEZ_F