mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-11-17 14:12:58 +00:00
mist: meche: use the common page grabbing code
note: did not test this yet
This commit is contained in:
parent
dfbc2ea12c
commit
f99a3ff105
@ -397,7 +397,8 @@ clean:
|
||||
LOADER MIST_TITLE \
|
||||
MIST OCTAGON VIEWER DENTIST \
|
||||
MECHE SELENA SHIP STONEY CHANNEL ARBOR NIBEL \
|
||||
GENERATOR
|
||||
GENERATOR \
|
||||
generate_common
|
||||
cd graphics_title && make clean
|
||||
cd graphics_mist && make clean
|
||||
cd graphics_octagon && make clean
|
||||
|
19
mist/meche.s
19
mist/meche.s
@ -266,24 +266,6 @@ no_draw_page:
|
||||
; includes
|
||||
;==========================
|
||||
|
||||
.if 0
|
||||
.include "gr_copy.s"
|
||||
.include "gr_offsets.s"
|
||||
.include "gr_pageflip.s"
|
||||
.include "gr_putsprite_crop.s"
|
||||
.include "text_print.s"
|
||||
.include "gr_fast_clear.s"
|
||||
.include "decompress_fast_v2.s"
|
||||
.include "keyboard.s"
|
||||
.include "draw_pointer.s"
|
||||
.include "end_level.s"
|
||||
.include "audio.s"
|
||||
|
||||
.include "common_sprites.inc"
|
||||
.include "page_sprites.inc"
|
||||
|
||||
.endif
|
||||
|
||||
; puzzles
|
||||
|
||||
.include "meche_rotation.s"
|
||||
@ -296,6 +278,7 @@ no_draw_page:
|
||||
|
||||
.include "link_book_meche.s"
|
||||
.include "link_book_mist.s"
|
||||
.include "handle_pages.s"
|
||||
|
||||
; level data
|
||||
|
||||
|
@ -3,57 +3,31 @@
|
||||
; book page stuff
|
||||
;==============================
|
||||
|
||||
take_blue_page:
|
||||
grab_blue_page:
|
||||
|
||||
; FIXME: if we came back we could return page
|
||||
; should check to see if carrying first
|
||||
; also what if holding red, click blu
|
||||
|
||||
lda BLUE_PAGES_TAKEN
|
||||
eor #MECHE_PAGE
|
||||
sta BLUE_PAGES_TAKEN
|
||||
|
||||
; FIXME: if holding another page, put it down?
|
||||
|
||||
and #MECHE_PAGE
|
||||
beq dropped_blue_page
|
||||
bne missing_page
|
||||
|
||||
lda #HOLDING_BLUE_PAGE
|
||||
sta HOLDING_PAGE
|
||||
rts
|
||||
lda #MECHE_PAGE
|
||||
jmp take_blue_page
|
||||
|
||||
dropped_blue_page:
|
||||
lda #0
|
||||
sta HOLDING_PAGE
|
||||
|
||||
rts
|
||||
|
||||
take_red_page:
|
||||
|
||||
; FIXME: if we came back we could return page
|
||||
; should check to see if carrying first
|
||||
; also what if holding red, click blu
|
||||
grab_red_page:
|
||||
|
||||
lda RED_PAGES_TAKEN
|
||||
eor #MECHE_PAGE
|
||||
sta RED_PAGES_TAKEN
|
||||
|
||||
; FIXME: if holding another page, put it down?
|
||||
|
||||
and #MECHE_PAGE
|
||||
beq dropped_red_page
|
||||
bne missing_page
|
||||
|
||||
lda #HOLDING_RED_PAGE
|
||||
sta HOLDING_PAGE
|
||||
lda #MECHE_PAGE
|
||||
jmp take_red_page
|
||||
|
||||
missing_page:
|
||||
rts
|
||||
|
||||
dropped_red_page:
|
||||
lda #0
|
||||
sta HOLDING_PAGE
|
||||
|
||||
rts
|
||||
|
||||
|
||||
|
||||
|
||||
enter_blue_secret:
|
||||
|
Loading…
Reference in New Issue
Block a user