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 lda #0
sta DISP_PAGE sta DISP_PAGE
sta TEMP sta ANGLE
scroll_loop: scroll_loop:
ldx #0 ldx #0
ldy TEMP ldy ANGLE
lda DISP_PAGE lda DISP_PAGE
beq draw_page2 beq draw_page2
@ -81,16 +81,16 @@ sm4:
; loop forever ; loop forever
;================== ;==================
clc clc
lda TEMP lda ANGLE
adc #40 adc #40
cmp scroll_length cmp scroll_length
bne blah bne blah
lda #0 lda #0
sta TEMP sta ANGLE
jmp scroll_loop jmp scroll_loop
blah: blah:
inc TEMP inc ANGLE
jmp scroll_loop ; 3 jmp scroll_loop ; 3
;=============================================== ;===============================================

View File

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