mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-08-13 11:25:14 +00:00
keen: update rayguns
This commit is contained in:
@@ -31,6 +31,14 @@ check_item:
|
|||||||
jmp done_item_pickup
|
jmp done_item_pickup
|
||||||
|
|
||||||
get_laser_gun:
|
get_laser_gun:
|
||||||
|
lda RAYGUNS
|
||||||
|
clc
|
||||||
|
sed
|
||||||
|
adc #$05
|
||||||
|
sta RAYGUNS
|
||||||
|
cld
|
||||||
|
|
||||||
|
jmp done_item_pickup
|
||||||
|
|
||||||
; keycards go here too...
|
; keycards go here too...
|
||||||
get_keycard:
|
get_keycard:
|
||||||
|
@@ -26,6 +26,35 @@ inc_score:
|
|||||||
|
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
;===========================
|
||||||
|
; update rayguns
|
||||||
|
;===========================
|
||||||
|
; remove leading zeros
|
||||||
|
; leftmost is score_string+26
|
||||||
|
update_rayguns:
|
||||||
|
|
||||||
|
update_raygun_l:
|
||||||
|
lda RAYGUNS
|
||||||
|
lsr
|
||||||
|
lsr
|
||||||
|
lsr
|
||||||
|
lsr
|
||||||
|
|
||||||
|
beq update_raygun_r
|
||||||
|
|
||||||
|
ora #$b0 ; 0 -> $b0
|
||||||
|
sta score_string+26
|
||||||
|
|
||||||
|
update_raygun_r:
|
||||||
|
lda RAYGUNS
|
||||||
|
and #$f
|
||||||
|
|
||||||
|
ora #$b0 ; 0 -> $b0
|
||||||
|
sta score_string+27
|
||||||
|
|
||||||
|
rts
|
||||||
|
|
||||||
;===========================
|
;===========================
|
||||||
; update score
|
; update score
|
||||||
;===========================
|
;===========================
|
||||||
@@ -181,7 +210,7 @@ done_blue_key:
|
|||||||
draw_status_bar:
|
draw_status_bar:
|
||||||
|
|
||||||
jsr update_score
|
jsr update_score
|
||||||
|
jsr update_rayguns
|
||||||
|
|
||||||
bit TEXTGR ; split graphics/text
|
bit TEXTGR ; split graphics/text
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user