mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-19 15:30:08 +00:00
riven: fix up atrus scenes
just barely squeak in with enough room
This commit is contained in:
parent
e457c6567e
commit
be003eef19
@ -6,6 +6,8 @@
|
|||||||
.include "../hardware.inc"
|
.include "../hardware.inc"
|
||||||
.include "../qload.inc"
|
.include "../qload.inc"
|
||||||
|
|
||||||
|
.include "disk00_defines.inc"
|
||||||
|
|
||||||
NUM_SCENES = 11
|
NUM_SCENES = 11
|
||||||
|
|
||||||
;===================
|
;===================
|
||||||
@ -14,6 +16,16 @@ NUM_SCENES = 11
|
|||||||
|
|
||||||
atrus_start:
|
atrus_start:
|
||||||
|
|
||||||
|
; we want to over-write page2 later on so important code
|
||||||
|
; should be higher than that
|
||||||
|
|
||||||
|
jmp start_high
|
||||||
|
|
||||||
|
atrus_graphics:
|
||||||
|
.include "graphics_atrus/atrus_graphics.inc"
|
||||||
|
|
||||||
|
start_high:
|
||||||
|
|
||||||
;===================
|
;===================
|
||||||
; Setup graphics
|
; Setup graphics
|
||||||
;===================
|
;===================
|
||||||
@ -39,14 +51,6 @@ atrus_loop:
|
|||||||
|
|
||||||
jsr clear_bottom
|
jsr clear_bottom
|
||||||
|
|
||||||
; show full screen for last image (book)
|
|
||||||
|
|
||||||
lda SCENE_COUNT
|
|
||||||
cmp #10
|
|
||||||
bne not_at_end
|
|
||||||
bit FULLGR
|
|
||||||
not_at_end:
|
|
||||||
|
|
||||||
; decompress graphics
|
; decompress graphics
|
||||||
|
|
||||||
ldx SCENE_COUNT
|
ldx SCENE_COUNT
|
||||||
@ -60,14 +64,14 @@ not_at_end:
|
|||||||
|
|
||||||
; write dialog
|
; write dialog
|
||||||
|
|
||||||
lda #0
|
; lda #0
|
||||||
sta DRAW_PAGE
|
; sta DRAW_PAGE
|
||||||
|
|
||||||
ldx SCENE_COUNT
|
ldx SCENE_COUNT
|
||||||
|
|
||||||
lda dialog_l,X
|
lda dialog_l,X
|
||||||
sta OUTL
|
sta OUTL
|
||||||
lda dialog_h,X
|
lda dialog_h,X ; assume all on same page
|
||||||
sta OUTH
|
sta OUTH
|
||||||
|
|
||||||
jsr move_and_print_list
|
jsr move_and_print_list
|
||||||
@ -80,14 +84,36 @@ not_at_end:
|
|||||||
|
|
||||||
jsr wait_a_bit
|
jsr wait_a_bit
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
inc SCENE_COUNT
|
inc SCENE_COUNT
|
||||||
lda SCENE_COUNT
|
lda SCENE_COUNT
|
||||||
cmp #NUM_SCENES
|
cmp #NUM_SCENES
|
||||||
|
|
||||||
bne atrus_loop
|
bne atrus_loop
|
||||||
|
|
||||||
|
; done showing things, cycle page1/page2 for a bit
|
||||||
|
|
||||||
|
bit FULLGR
|
||||||
|
|
||||||
|
ldy #14
|
||||||
|
page_loop:
|
||||||
|
tya
|
||||||
|
and #$1
|
||||||
|
tax
|
||||||
|
lda PAGE1,X
|
||||||
|
ldx #10
|
||||||
|
jsr wait_a_bit
|
||||||
|
|
||||||
|
dey
|
||||||
|
bpl page_loop
|
||||||
|
|
||||||
|
|
||||||
|
bit KEYRESET
|
||||||
|
|
||||||
|
lda #LOAD_ATRUS
|
||||||
|
sta WHICH_LOAD
|
||||||
|
|
||||||
|
lda #$1
|
||||||
|
sta LEVEL_OVER
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
|
||||||
@ -104,7 +130,6 @@ frames_l:
|
|||||||
.byte <atrus10_zx02
|
.byte <atrus10_zx02
|
||||||
.byte <atrus11_zx02
|
.byte <atrus11_zx02
|
||||||
|
|
||||||
|
|
||||||
frames_h:
|
frames_h:
|
||||||
.byte >atrus1_zx02
|
.byte >atrus1_zx02
|
||||||
.byte >atrus2_zx02
|
.byte >atrus2_zx02
|
||||||
@ -118,8 +143,7 @@ frames_h:
|
|||||||
.byte >atrus10_zx02
|
.byte >atrus10_zx02
|
||||||
.byte >atrus11_zx02
|
.byte >atrus11_zx02
|
||||||
|
|
||||||
atrus_graphics:
|
|
||||||
.include "graphics_atrus/atrus_graphics.inc"
|
|
||||||
|
|
||||||
|
|
||||||
; could maybe optimize if we can guarantee we don't
|
; could maybe optimize if we can guarantee we don't
|
||||||
@ -156,12 +180,12 @@ dialog_delay:
|
|||||||
.byte 100 ; 5s
|
.byte 100 ; 5s
|
||||||
.byte 100 ; 5s
|
.byte 100 ; 5s
|
||||||
.byte 100 ; 5s
|
.byte 100 ; 5s
|
||||||
.byte 100 ; 5s
|
.byte 120 ; 6s longer message
|
||||||
.byte 100 ; 5s
|
.byte 100 ; 5s
|
||||||
.byte 100 ; 5s
|
.byte 100 ; 5s
|
||||||
.byte 40 ; 2s
|
.byte 40 ; 2s
|
||||||
.byte 40 ; 2s
|
.byte 40 ; 2s
|
||||||
.byte 40 ; 2s
|
.byte 1 ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ atrus_graphics.inc: \
|
|||||||
atrus8_iipix.hgr.zx02 \
|
atrus8_iipix.hgr.zx02 \
|
||||||
atrus9_iipix.hgr.zx02 \
|
atrus9_iipix.hgr.zx02 \
|
||||||
atrus10_iipix.hgr.zx02 \
|
atrus10_iipix.hgr.zx02 \
|
||||||
atrus11_iipix.hgr.zx02
|
book_combined.zx02
|
||||||
echo "atrus1_zx02: .incbin \"atrus1_iipix.hgr.zx02\"" > atrus_graphics.inc
|
echo "atrus1_zx02: .incbin \"atrus1_iipix.hgr.zx02\"" > atrus_graphics.inc
|
||||||
echo "atrus2_zx02: .incbin \"atrus2_iipix.hgr.zx02\"" >> atrus_graphics.inc
|
echo "atrus2_zx02: .incbin \"atrus2_iipix.hgr.zx02\"" >> atrus_graphics.inc
|
||||||
echo "atrus3_zx02: .incbin \"atrus3_iipix.hgr.zx02\"" >> atrus_graphics.inc
|
echo "atrus3_zx02: .incbin \"atrus3_iipix.hgr.zx02\"" >> atrus_graphics.inc
|
||||||
@ -27,9 +27,17 @@ atrus_graphics.inc: \
|
|||||||
echo "atrus8_zx02: .incbin \"atrus8_iipix.hgr.zx02\"" >> atrus_graphics.inc
|
echo "atrus8_zx02: .incbin \"atrus8_iipix.hgr.zx02\"" >> atrus_graphics.inc
|
||||||
echo "atrus9_zx02: .incbin \"atrus9_iipix.hgr.zx02\"" >> atrus_graphics.inc
|
echo "atrus9_zx02: .incbin \"atrus9_iipix.hgr.zx02\"" >> atrus_graphics.inc
|
||||||
echo "atrus10_zx02: .incbin \"atrus10_iipix.hgr.zx02\"" >> atrus_graphics.inc
|
echo "atrus10_zx02: .incbin \"atrus10_iipix.hgr.zx02\"" >> atrus_graphics.inc
|
||||||
echo "atrus11_zx02: .incbin \"atrus11_iipix.hgr.zx02\"" >> atrus_graphics.inc
|
echo "atrus11_zx02: .incbin \"book_combined.zx02\"" >> atrus_graphics.inc
|
||||||
|
# echo "atrus11_zx02: .incbin \"atrus11_iipix.hgr.zx02\"" >> atrus_graphics.inc
|
||||||
|
|
||||||
|
|
||||||
|
####
|
||||||
|
|
||||||
|
book_combined.zx02: atrus11_iipix.hgr atrus15_iipix.hgr
|
||||||
|
cat atrus11_iipix.hgr > book_combined
|
||||||
|
cat atrus15_iipix.hgr >> book_combined
|
||||||
|
$(ZX02) -f book_combined book_combined.zx02
|
||||||
|
|
||||||
####
|
####
|
||||||
|
|
||||||
%.hgr: %.png
|
%.hgr: %.png
|
||||||
@ -41,5 +49,5 @@ atrus_graphics.inc: \
|
|||||||
####
|
####
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *~ *.o *.lst *.zx02 *.hgr atrus_graphics.inc
|
rm -f *~ *.o *.lst *.zx02 *.hgr atrus_graphics.inc book_combined
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 8.3 KiB |
BIN
games/riven_hgr/disk00_files/graphics_atrus/atrus15_iipix.png
Normal file
BIN
games/riven_hgr/disk00_files/graphics_atrus/atrus15_iipix.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
Loading…
x
Reference in New Issue
Block a user