mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-27 17:29:49 +00:00
ootw: alien weapon
This commit is contained in:
parent
f835003606
commit
78cd78f27e
17
ootw/alien.s
17
ootw/alien.s
@ -8,6 +8,7 @@ alien0:
|
||||
alien0_state: .byte 0
|
||||
alien0_gait: .byte 0
|
||||
alien0_direction: .byte 0
|
||||
alien0_gun: .byte 0
|
||||
|
||||
alien1:
|
||||
alien1_out: .byte 0
|
||||
@ -16,6 +17,7 @@ alien1:
|
||||
alien1_state: .byte 0
|
||||
alien1_gait: .byte 0
|
||||
alien1_direction: .byte 0
|
||||
alien1_gun: .byte 0
|
||||
|
||||
ALIEN_OUT = 0
|
||||
ALIEN_X = 1
|
||||
@ -23,6 +25,7 @@ ALIEN_Y = 2
|
||||
ALIEN_STATE = 3
|
||||
ALIEN_GAIT = 4
|
||||
ALIEN_DIRECTION = 5
|
||||
ALIEN_GUN = 6
|
||||
|
||||
A_STANDING = 0
|
||||
A_WALKING = 1
|
||||
@ -197,6 +200,20 @@ alien_gait_fine:
|
||||
|
||||
tay
|
||||
|
||||
lda alien_state+ALIEN_GUN,X
|
||||
beq alien_walk_nogun
|
||||
|
||||
alien_walk_gun:
|
||||
|
||||
lda alien_walk_gun_progression,Y
|
||||
sta INL
|
||||
|
||||
lda alien_walk_gun_progression+1,Y
|
||||
sta INH
|
||||
|
||||
jmp finally_draw_alien
|
||||
|
||||
alien_walk_nogun:
|
||||
lda alien_walk_progression,Y
|
||||
sta INL
|
||||
|
||||
|
@ -192,10 +192,26 @@ done_cage_guard:
|
||||
|
||||
inc CAGE_AMPLITUDE
|
||||
lda CAGE_AMPLITUDE
|
||||
|
||||
check_amp1:
|
||||
cmp #1
|
||||
bne check_amp2
|
||||
|
||||
; lda #1 ; if amp=1, guard gets gun out
|
||||
sta alien0_gun
|
||||
jmp cage_continue
|
||||
|
||||
check_amp2:
|
||||
cmp #2
|
||||
bne check_amp3
|
||||
|
||||
|
||||
check_amp3:
|
||||
cmp #3
|
||||
bne cage_continue
|
||||
|
||||
|
||||
|
||||
;===========================
|
||||
; Done with cage, enter jail
|
||||
|
||||
|
@ -1,54 +1,53 @@
|
||||
cage_rle: .byte $28 ; ysize=48
|
||||
.byte $A5,$22, $A4,$00, $20, $62,$62, $20, $00,$00, $20
|
||||
.byte $02, $00,$00, $20,$20, $22, $20, $00, $22
|
||||
.byte $20, $00, $22, $66, $55, $22, $66,$66
|
||||
.byte $20, $00, $22, $00, $55, $22, $66,$66
|
||||
.byte $A5,$88, $A6,$22, $A5,$00, $A3,$22, $62, $00, $A3,$20
|
||||
.byte $00,$00, $06, $66,$66, $22, $20, $66,$66, $00,$00
|
||||
.byte $66, $55, $22, $66,$66, $A6,$88, $A5,$22, $A3,$00
|
||||
.byte $22, $00,$00, $02,$02, $00,$00, $22,$22, $66,$66, $22,$22
|
||||
.byte $00, $A4,$02, $A3,$00, $66, $55, $22, $66,$66
|
||||
.byte $A6,$88, $A4,$22, $A6,$00, $20, $A3,$22, $26, $62,$62
|
||||
.byte $66,$66, $26, $22, $A8,$00, $66, $55, $22
|
||||
.byte $66,$66, $A6,$88, $A4,$22, $A5,$00, $20, $62, $22
|
||||
.byte $62, $22,$22, $62, $A3,$66, $22, $02, $22
|
||||
.byte $A7,$00, $66, $55, $22, $66,$66, $A6,$88, $A3,$22
|
||||
.byte $A6,$00, $02, $26,$26, $66, $22, $A5,$66, $22
|
||||
.byte $00, $02, $20, $A6,$00, $66, $55, $22
|
||||
.byte $66,$66, $88,$88, $65, $A3,$88, $22,$22, $02, $A7,$00
|
||||
.byte $22,$22, $66,$66, $22, $A4,$66, $22, $20,$20, $22
|
||||
.byte $A4,$00, $02, $00, $66, $55, $22, $66,$66
|
||||
.byte $A6,$88, $22,$22, $A8,$00, $22, $A8,$66, $A4,$22, $00,$00
|
||||
.byte $22, $A3,$00, $66, $55, $22, $66,$66, $A7,$88
|
||||
.byte $00,$00, $06, $66,$66, $22, $20, $66,$66, $A3,$00
|
||||
.byte $55, $22, $66,$66, $A6,$88, $A5,$22, $A3,$00, $22
|
||||
.byte $00,$00, $02,$02, $00,$00, $22,$22, $66,$66, $22,$22, $00
|
||||
.byte $A4,$02, $A4,$00, $55, $22, $66,$66, $A6,$88, $A4,$22
|
||||
.byte $A6,$00, $20, $A3,$22, $26, $62,$62, $66,$66, $26
|
||||
.byte $22, $A9,$00, $55, $22, $66,$66, $A6,$88, $A4,$22
|
||||
.byte $A5,$00, $20, $62, $22, $62, $22,$22, $62
|
||||
.byte $A3,$66, $22, $02, $22, $A8,$00, $55, $22
|
||||
.byte $66,$66, $A6,$88, $A3,$22, $A6,$00, $02, $26,$26, $66
|
||||
.byte $22, $A5,$66, $22, $00, $02, $20, $A7,$00
|
||||
.byte $55, $22, $66,$66, $88,$88, $65, $A3,$88, $22,$22
|
||||
.byte $02, $A7,$00, $22,$22, $66,$66, $22, $A4,$66, $22
|
||||
.byte $20,$20, $22, $A4,$00, $02, $00,$00, $55, $22
|
||||
.byte $66,$66, $A6,$88, $22,$22, $A8,$00, $22, $A8,$66, $A4,$22
|
||||
.byte $00,$00, $22, $A4,$00, $55, $22, $66,$66, $A7,$88
|
||||
.byte $02, $A9,$00, $22, $26, $62, $A5,$66, $22
|
||||
.byte $66, $26, $02, $00,$00, $02, $A3,$00, $66
|
||||
.byte $55, $22, $66,$66, $A7,$88, $AA,$00, $22, $26
|
||||
.byte $66, $62, $66, $26, $66, $22,$22, $66
|
||||
.byte $02, $A6,$00, $22, $66, $55, $22, $66,$66
|
||||
.byte $A7,$88, $AA,$00, $22,$22, $66,$66, $26, $22, $66
|
||||
.byte $62, $66,$66, $20, $A7,$00, $66, $55, $22
|
||||
.byte $66,$66, $A7,$88, $AB,$00, $22,$22, $26, $A3,$66, $26
|
||||
.byte $66,$66, $22, $00, $20, $A3,$00, $22, $00
|
||||
.byte $55,$55, $22, $66,$66, $A7,$88, $AC,$00, $22, $02
|
||||
.byte $26,$26, $22, $02,$02, $22, $62, $22, $62
|
||||
.byte $00,$00, $22, $20, $00, $55,$55, $22, $66,$66
|
||||
.byte $A7,$88, $A9,$00, $22,$22, $A3,$00, $A3,$22, $00,$00, $02
|
||||
.byte $66, $62, $66, $00,$00, $22, $66, $00
|
||||
.byte $55,$55, $22, $66,$66, $A7,$88, $A9,$00, $02,$02, $AA,$00
|
||||
.byte $02, $22, $A3,$00, $02, $00, $55,$55, $22
|
||||
.byte $66,$66, $A7,$88, $AB,$00, $20, $00,$00, $62, $66
|
||||
.byte $AC,$00, $55,$55, $22, $66,$66, $A7,$88, $A7,$00, $20,$20
|
||||
.byte $22, $00, $22,$22, $20, $66,$66, $22,$22, $20
|
||||
.byte $A9,$00, $55,$55, $22, $66,$66, $A7,$88, $A7,$00, $22
|
||||
.byte $66, $26, $00, $22, $26, $22, $26
|
||||
.byte $A4,$22, $A9,$00, $55,$55, $22, $66,$66, $A7,$88, $A7,$00
|
||||
.byte $22, $66,$66, $00, $02, $62, $66,$66, $26
|
||||
.byte $22,$22, $AA,$00, $55,$55, $22, $66,$66, $A7,$88, $A5,$00
|
||||
.byte $22, $00, $02,$02, $06, $00, $22,$22, $26,$26
|
||||
.byte $22, $02, $AB,$00, $55,$55, $22, $66,$66, $A7,$88
|
||||
.byte $AB,$00, $22, $02, $AF,$00, $55,$55, $22, $66,$66
|
||||
.byte $A7,$88, $A0,$19,$00, $A3,$20, $A3,$25, $66,$66, $A7,$88, $A3,$60
|
||||
.byte $AF,$00, $A7,$60, $A6,$62, $66,$66, $A7,$68, $22, $A0,$12,$00
|
||||
.byte $55, $00, $55, $00, $55, $22, $52
|
||||
.byte $00, $55, $22, $52, $00, $55, $00
|
||||
.byte $55, $00, $55, $00, $55, $00, $55
|
||||
.byte $66, $26, $02, $00,$00, $02, $A4,$00, $55
|
||||
.byte $22, $66,$66, $A7,$88, $AA,$00, $22, $26, $66
|
||||
.byte $62, $66, $26, $66, $22,$22, $66, $02
|
||||
.byte $A6,$00, $22, $00, $55, $22, $66,$66, $A7,$88
|
||||
.byte $AA,$00, $22,$22, $66,$66, $26, $22, $66, $62
|
||||
.byte $66,$66, $20, $A8,$00, $55, $22, $66,$66, $A7,$88
|
||||
.byte $AB,$00, $22,$22, $26, $A3,$66, $26, $66,$66, $22
|
||||
.byte $00, $20, $A3,$00, $22, $00,$00, $55, $22
|
||||
.byte $66,$66, $A7,$88, $AC,$00, $22, $02, $26,$26, $22
|
||||
.byte $02,$02, $22, $62, $22, $62, $00,$00, $22
|
||||
.byte $20, $00,$00, $55, $22, $66,$66, $A7,$88, $A9,$00
|
||||
.byte $22,$22, $A3,$00, $A3,$22, $00,$00, $02, $66, $62
|
||||
.byte $66, $00,$00, $22, $66, $00,$00, $55, $22
|
||||
.byte $66,$66, $A7,$88, $A9,$00, $02,$02, $AA,$00, $02, $22
|
||||
.byte $A3,$00, $02, $00,$00, $55, $22, $66,$66, $A7,$88
|
||||
.byte $AB,$00, $20, $00,$00, $62, $66, $AD,$00, $55
|
||||
.byte $22, $66,$66, $A7,$88, $A7,$00, $20,$20, $22, $00
|
||||
.byte $22,$22, $20, $66,$66, $22,$22, $20, $AA,$00, $55
|
||||
.byte $22, $66,$66, $A7,$88, $A7,$00, $22, $66, $26
|
||||
.byte $00, $22, $26, $22, $26, $A4,$22, $AA,$00
|
||||
.byte $55, $22, $66,$66, $A7,$88, $A7,$00, $22, $66,$66
|
||||
.byte $00, $02, $62, $66,$66, $26, $22,$22, $AB,$00
|
||||
.byte $55, $22, $66,$66, $A7,$88, $A5,$00, $22, $00
|
||||
.byte $02,$02, $06, $00, $22,$22, $26,$26, $22, $02
|
||||
.byte $AC,$00, $55, $22, $66,$66, $A7,$88, $AB,$00, $22
|
||||
.byte $02, $A0,$10,$00, $55, $22, $66,$66, $A7,$88, $A0,$19,$00
|
||||
.byte $A3,$26, $A3,$25, $66,$66, $A7,$88, $60,$60, $A0,$10,$00, $A7,$60
|
||||
.byte $A6,$62, $66,$66, $A7,$68, $26, $A0,$11,$00, $06, $56
|
||||
.byte $06, $56, $06, $56, $26, $56, $06
|
||||
.byte $56, $26, $56, $06, $56, $06, $56
|
||||
.byte $06, $56, $06, $56, $06, $56
|
||||
.byte $A1
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.0 KiB |
@ -79,7 +79,7 @@ alien_walk_left4:
|
||||
.byte $aa,$77,$07,$00,$aa
|
||||
.byte $aa,$aa,$00,$77,$aa
|
||||
.byte $aa,$aa,$77,$10,$aa
|
||||
.byte $aa,$a5,$00,$00,$aa
|
||||
.byte $aa,$a7,$00,$00,$aa
|
||||
.byte $aa,$aa,$77,$55,$aa
|
||||
.byte $aa,$aa,$07,$05,$aa
|
||||
.byte $aa,$0a,$00,$00,$aa
|
||||
@ -90,7 +90,7 @@ alien_walk_left5:
|
||||
.byte $aa,$77,$07,$00,$aa
|
||||
.byte $aa,$aa,$00,$77,$aa
|
||||
.byte $aa,$aa,$77,$10,$aa
|
||||
.byte $aa,$a5,$00,$00,$aa
|
||||
.byte $aa,$a7,$00,$00,$aa
|
||||
.byte $aa,$5a,$55,$77,$aa
|
||||
.byte $aa,$00,$a7,$07,$aa
|
||||
.byte $a0,$a0,$0a,$00,$aa
|
||||
@ -128,6 +128,113 @@ alien_walk_left8:
|
||||
.byte $aa,$aa,$a5,$07,$aa
|
||||
.byte $aa,$aa,$00,$00,$aa
|
||||
|
||||
|
||||
;=====================
|
||||
;=====================
|
||||
; WALKING with gun
|
||||
;=====================
|
||||
;=====================
|
||||
|
||||
alien_walk_gun_progression:
|
||||
.word alien_walk_gun_left1
|
||||
.word alien_walk_gun_left2
|
||||
.word alien_walk_gun_left3
|
||||
.word alien_walk_gun_left4
|
||||
.word alien_walk_gun_left5
|
||||
.word alien_walk_gun_left6
|
||||
.word alien_walk_gun_left7
|
||||
.word alien_walk_gun_left8
|
||||
|
||||
|
||||
alien_walk_gun_left1:
|
||||
.byte $5,$8
|
||||
.byte $aa,$7a,$57,$75,$aa
|
||||
.byte $aa,$77,$07,$00,$aa
|
||||
.byte $a0,$5a,$00,$77,$aa
|
||||
.byte $aa,$aa,$10,$77,$aa
|
||||
.byte $aa,$aa,$00,$07,$aa
|
||||
.byte $aa,$aa,$77,$a5,$5a
|
||||
.byte $aa,$aa,$07,$aa,$05
|
||||
.byte $aa,$a0,$00,$0a,$00
|
||||
|
||||
alien_walk_gun_left2:
|
||||
.byte $5,$8
|
||||
.byte $aa,$7a,$57,$75,$aa
|
||||
.byte $aa,$77,$07,$00,$aa
|
||||
.byte $0a,$aa,$00,$77,$aa
|
||||
.byte $aa,$5a,$77,$17,$aa
|
||||
.byte $aa,$aa,$07,$00,$aa
|
||||
.byte $aa,$aa,$77,$55,$aa
|
||||
.byte $aa,$aa,$07,$aa,$05
|
||||
.byte $aa,$0a,$00,$00,$a0
|
||||
|
||||
alien_walk_gun_left3:
|
||||
.byte $5,$8
|
||||
.byte $aa,$7a,$57,$75,$aa
|
||||
.byte $aa,$77,$07,$00,$aa
|
||||
.byte $0a,$aa,$00,$77,$aa
|
||||
.byte $aa,$aa,$77,$10,$aa
|
||||
.byte $aa,$a5,$07,$00,$aa
|
||||
.byte $aa,$aa,$77,$55,$aa
|
||||
.byte $aa,$aa,$07,$00,$0a
|
||||
.byte $aa,$0a,$00,$aa,$a0
|
||||
|
||||
alien_walk_gun_left4:
|
||||
.byte $5,$8
|
||||
.byte $aa,$7a,$57,$75,$aa
|
||||
.byte $aa,$77,$07,$00,$aa
|
||||
.byte $0a,$aa,$00,$77,$aa
|
||||
.byte $aa,$a5,$77,$10,$aa
|
||||
.byte $aa,$a7,$00,$00,$aa
|
||||
.byte $aa,$aa,$77,$55,$aa
|
||||
.byte $aa,$aa,$07,$05,$aa
|
||||
.byte $aa,$0a,$00,$00,$aa
|
||||
|
||||
alien_walk_gun_left5:
|
||||
.byte $5,$8
|
||||
.byte $aa,$7a,$57,$75,$aa
|
||||
.byte $aa,$77,$07,$00,$aa
|
||||
.byte $a0,$5a,$00,$77,$aa
|
||||
.byte $aa,$aa,$77,$10,$aa
|
||||
.byte $aa,$a7,$00,$00,$aa
|
||||
.byte $aa,$5a,$55,$77,$aa
|
||||
.byte $aa,$00,$a7,$07,$aa
|
||||
.byte $a0,$a0,$0a,$00,$aa
|
||||
|
||||
alien_walk_gun_left6:
|
||||
.byte $5,$8
|
||||
.byte $aa,$7a,$57,$75,$aa
|
||||
.byte $aa,$77,$07,$00,$aa
|
||||
.byte $a0,$5a,$00,$77,$aa
|
||||
.byte $aa,$aa,$77,$17,$aa
|
||||
.byte $aa,$aa,$07,$00,$aa
|
||||
.byte $aa,$5a,$55,$77,$7a
|
||||
.byte $aa,$05,$aa,$aa,$07
|
||||
.byte $a0,$a0,$aa,$0a,$00
|
||||
|
||||
alien_walk_gun_left7:
|
||||
.byte $5,$8
|
||||
.byte $aa,$7a,$57,$75,$aa
|
||||
.byte $aa,$77,$07,$00,$aa
|
||||
.byte $0a,$aa,$00,$77,$aa
|
||||
.byte $aa,$a5,$10,$77,$aa
|
||||
.byte $aa,$aa,$00,$07,$aa
|
||||
.byte $aa,$aa,$57,$77,$aa
|
||||
.byte $aa,$aa,$05,$a7,$07
|
||||
.byte $aa,$0a,$00,$00,$a0
|
||||
|
||||
alien_walk_gun_left8:
|
||||
.byte $5,$8
|
||||
.byte $aa,$7a,$57,$75,$aa
|
||||
.byte $aa,$77,$07,$00,$aa
|
||||
.byte $0a,$aa,$00,$77,$aa
|
||||
.byte $aa,$a5,$10,$77,$7a
|
||||
.byte $aa,$aa,$00,$00,$a7
|
||||
.byte $aa,$aa,$55,$77,$aa
|
||||
.byte $aa,$aa,$a5,$07,$aa
|
||||
.byte $aa,$aa,$00,$00,$aa
|
||||
|
||||
|
||||
;=====================
|
||||
;=====================
|
||||
; RUNNING
|
||||
|
Loading…
Reference in New Issue
Block a user