mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-27 17:29:49 +00:00
sprites: move asteroid
too fast!!!
This commit is contained in:
parent
16ab5c75c2
commit
ca304be08f
@ -240,6 +240,7 @@ display_loop:
|
||||
;-1821 -- draw ship (130*14)+1
|
||||
; -829 -- erase ship (100*8)+(14*2)+1
|
||||
; -167 -- erase fire
|
||||
; -337 -- erase asteroid
|
||||
; -31 -- move ship
|
||||
; -17 -- move fire
|
||||
; -36 -- move asteroid
|
||||
@ -313,6 +314,26 @@ display_loop:
|
||||
|
||||
|
||||
|
||||
|
||||
;=====================
|
||||
; erase the asteroid
|
||||
|
||||
lda #$0 ; 2
|
||||
sta DRAW_PAGE ; 3
|
||||
|
||||
lda #<void_p1 ; 2
|
||||
sta INL ; 3
|
||||
lda #>void_p1 ; 2
|
||||
sta INH ; 3
|
||||
lda ASTEROID_X ; 3
|
||||
sta SPRITE_XPOS ; 3
|
||||
lda ASTEROID_Y ; 3
|
||||
sta SPRITE_YPOS ; 3
|
||||
jsr put_sprite ; 6+304
|
||||
;======
|
||||
; 337
|
||||
|
||||
|
||||
;==========================
|
||||
; move/collide the asteroid
|
||||
;==========================
|
||||
@ -682,12 +703,13 @@ pad_time:
|
||||
|
||||
wait_loop:
|
||||
|
||||
; Try X=153 Y=1 cycles=772R2
|
||||
; Try X=5 Y=14 cycles=435 R2
|
||||
|
||||
nop
|
||||
; nop
|
||||
|
||||
ldy #1 ; 2
|
||||
loop1: ldx #153 ; 2
|
||||
ldy #14 ; 2
|
||||
loop1: ldx #5 ; 2
|
||||
loop2: dex ; 2
|
||||
bne loop2 ; 2nt/3
|
||||
dey ; 2
|
||||
|
Loading…
Reference in New Issue
Block a user