mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-06-26 00:29:29 +00:00
ootw: have both rope and no-rope backgrounds
This commit is contained in:
parent
872a08c1fd
commit
c49857b8b0
|
@ -18,6 +18,9 @@ ootw:
|
|||
sta WHICH_CAVE
|
||||
sta BEAST_OUT
|
||||
|
||||
lda #1
|
||||
sta BEFORE_SWING
|
||||
|
||||
lda #22
|
||||
sta PHYSICIST_Y
|
||||
lda #20
|
||||
|
|
|
@ -7,8 +7,9 @@ all: ootw_rope.inc ootw_swing.inc
|
|||
|
||||
#####
|
||||
|
||||
ootw_rope.inc: $(PNG2RLE) another_rope.png
|
||||
ootw_rope.inc: $(PNG2RLE) another_rope.png another_norope.png
|
||||
$(PNG2RLE) asm another_rope.png rope_rle > ootw_rope.inc
|
||||
$(PNG2RLE) asm another_norope.png broke_rope_rle >> ootw_rope.inc
|
||||
|
||||
|
||||
#####
|
||||
|
|
BIN
ootw/ootw_graphics/rope/another_norope.png
Normal file
BIN
ootw/ootw_graphics/rope/another_norope.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.1 KiB |
|
@ -45,3 +45,47 @@ rope_rle: .byte $28 ; ysize=48
|
|||
.byte $AC,$55, $A4,$00, $AA,$22, $AF,$00, $05, $A6,$55, $A4,$05
|
||||
.byte $A4,$00, $AA,$22, $A0,$92,$00
|
||||
.byte $A1
|
||||
broke_rope_rle: .byte $28 ; ysize=48
|
||||
.byte $A3,$00, $22,$22, $00, $A4,$22, $A3,$00, $55, $A9,$00
|
||||
.byte $22, $A4,$00, $22, $52, $22, $00,$00, $22
|
||||
.byte $06, $A5,$66, $A3,$00, $22,$22, $00, $A4,$22, $A3,$00
|
||||
.byte $55, $A6,$00, $05, $00, $55, $22, $A5,$00
|
||||
.byte $55, $22, $00,$00, $22, $00, $A5,$66, $00,$00
|
||||
.byte $55, $22,$22, $00, $A4,$22, $20, $00,$00, $55
|
||||
.byte $A6,$00, $55, $00, $55, $22, $A5,$00, $55
|
||||
.byte $22, $00,$00, $02, $20, $A4,$66, $26, $00,$00
|
||||
.byte $77, $55, $02, $00, $A5,$22, $00,$00, $55
|
||||
.byte $A8,$00, $55, $22, $A5,$00, $55, $22, $00,$00
|
||||
.byte $20, $22, $06, $A3,$66, $22, $00,$00, $77
|
||||
.byte $55, $00, $A6,$22, $AB,$00, $55, $22, $A5,$00
|
||||
.byte $55, $22, $00,$00, $22, $00,$00, $55, $66,$66
|
||||
.byte $22, $00,$00, $77, $55, $20, $A5,$22, $A3,$00
|
||||
.byte $55, $A8,$00, $55, $22, $00,$00, $55, $22
|
||||
.byte $00, $55, $22, $00,$00, $02, $00,$00, $55
|
||||
.byte $66,$66, $22, $00,$00, $77, $55, $A6,$22, $20
|
||||
.byte $00,$00, $55, $A8,$00, $55, $22, $00,$00, $55
|
||||
.byte $22, $00, $55, $22, $A5,$00, $55, $26
|
||||
.byte $66, $22, $00,$00, $77, $55, $A7,$22, $A9,$00
|
||||
.byte $50, $00, $55, $22, $00,$00, $55, $22
|
||||
.byte $00, $55, $22, $A5,$00, $55, $22, $26
|
||||
.byte $22, $A3,$00, $55, $A7,$22, $A9,$00, $55, $00
|
||||
.byte $55, $22, $00,$00, $25, $22, $00, $05
|
||||
.byte $22, $A5,$00, $55, $02, $00, $22, $A3,$00
|
||||
.byte $77, $55, $A6,$22, $AB,$00, $55, $22, $00,$00
|
||||
.byte $22, $A3,$00, $22, $A5,$00, $55, $00,$00, $22
|
||||
.byte $A4,$00, $55, $A6,$22, $05, $AA,$00, $55, $22
|
||||
.byte $00,$00, $22, $A3,$00, $22,$22, $A5,$00, $55, $22,$22
|
||||
.byte $A4,$00, $55, $A6,$22, $AB,$00, $05, $22, $00,$00
|
||||
.byte $22, $A3,$00, $02, $22, $A5,$00, $55, $22,$22
|
||||
.byte $A4,$00, $A7,$22, $AC,$00, $22, $00,$00, $02, $A4,$00
|
||||
.byte $22, $A5,$00, $55, $02,$02, $A4,$00, $A6,$22, $02
|
||||
.byte $22, $00, $70,$70, $A8,$00, $22, $A7,$00, $22
|
||||
.byte $A5,$00, $55, $A6,$00, $A6,$22, $20, $52, $A4,$55
|
||||
.byte $50,$50, $A5,$00, $22, $A7,$00, $22, $AC,$00, $02
|
||||
.byte $52, $72, $52, $A3,$22, $A5,$00, $A3,$05, $55
|
||||
.byte $A3,$50, $22, $A0,$15,$00, $20,$20, $A3,$22, $00, $22
|
||||
.byte $20, $A8,$00, $05, $55,$55, $50, $A0,$13,$00, $A6,$22
|
||||
.byte $20, $22,$22, $AB,$00, $05, $55,$55, $AD,$50, $A4,$00
|
||||
.byte $A9,$22, $20, $AC,$00, $05,$05, $AC,$55, $A4,$00, $AA,$22
|
||||
.byte $AF,$00, $05, $A6,$55, $A4,$05, $A4,$00, $AA,$22, $A0,$92,$00
|
||||
.byte $A1
|
||||
|
|
|
@ -16,7 +16,7 @@ ootw_rope:
|
|||
lda #1
|
||||
sta DISP_PAGE
|
||||
|
||||
;===========================
|
||||
;=================================
|
||||
; Setup right/left exit paramaters
|
||||
|
||||
lda #37
|
||||
|
@ -28,10 +28,23 @@ ootw_rope:
|
|||
;=============================
|
||||
; Load background to $c00
|
||||
|
||||
lda BEFORE_SWING
|
||||
beq after_swing_bg
|
||||
|
||||
before_swing_bg:
|
||||
lda #>(rope_rle)
|
||||
sta GBASH
|
||||
lda #<(rope_rle)
|
||||
sta GBASL
|
||||
jmp load_swing_bg
|
||||
|
||||
after_swing_bg:
|
||||
lda #>(broke_rope_rle)
|
||||
sta GBASH
|
||||
lda #<(broke_rope_rle)
|
||||
sta GBASL
|
||||
|
||||
load_swing_bg:
|
||||
lda #$c ; load image off-screen $c00
|
||||
jsr load_rle_gr
|
||||
|
||||
|
@ -45,8 +58,6 @@ ootw_rope:
|
|||
|
||||
jsr gr_copy_to_current
|
||||
jsr page_flip
|
||||
jsr gr_copy_to_current
|
||||
|
||||
|
||||
;=================================
|
||||
; setup vars
|
||||
|
@ -174,6 +185,12 @@ check_cliff_edge:
|
|||
lda #0
|
||||
sta GAME_OVER
|
||||
|
||||
;===================
|
||||
; at cliff's edge
|
||||
|
||||
; lda #0
|
||||
; sta BEFORE_SWING
|
||||
|
||||
lda #11
|
||||
sta PHYSICIST_X
|
||||
|
||||
|
|
|
@ -159,9 +159,11 @@ PHYSICIST_STATE = $EA
|
|||
P_RUNNING = $02
|
||||
P_CROUCHING = $03
|
||||
P_KICKING = $04
|
||||
P_JUMPING = $05
|
||||
P_COLLAPSING = $06
|
||||
P_JUMPING = $05 ; no keypress
|
||||
P_COLLAPSING = $06 ; no keypress
|
||||
P_SWINGING = $07 ; no keypress
|
||||
|
||||
BEFORE_SWING = $EB
|
||||
CUTFRAME = $EC
|
||||
DISP_PAGE = $ED
|
||||
DRAW_PAGE = $EE
|
||||
|
|
Loading…
Reference in New Issue
Block a user