mist: make catherine letter a background like other letters in the game

this actually makes the code about 100 bytes smaller

should make it possible to grab from other direction but that gets
complicated with the dentist door code
This commit is contained in:
Vince Weaver 2020-07-03 23:06:11 -04:00
parent 68715719a1
commit 450384e09c
8 changed files with 88 additions and 37 deletions

View File

@ -1,3 +1,10 @@
; cat letter transition
; before: MIST = 32255
; after: 32106 (now is a location with compressed background)
Stoneship:
+ Never have to draw a wooden ship again it would be too soon

View File

@ -0,0 +1,49 @@
#0 1 2 3
#12345678901234567890123457890123456789
CATHERINE,
I'VE LEFT A MESSAGE
OF UTMOST IMPORTANCE
IN OUR FORE-CHAMBER
BESIDE THE DOCK.
ENTER THE NUMBER OF
MARKER SWITCHES ON
THIS ISLAND INTO THE
IMAGER.
YOURS,
ATRUS
# Catherine,
# I've left for you a message
# of utmost importance in
# our fore-chamber beside
# the dock. Enter the number
# of Marker Switches on
# this island into the imager
# to retrieve the message.
# Yours,
# Atrus
#sarcastic_letter:
# 01234567890123456789
#.byte 9,1," CATHERINE, ",0
#.byte 9,3," I THINK SOME WEIRD ",0
#.byte 9,5," GUY IS OUT ROAMING ",0
#.byte 9,7," AROUND OUR ISLAND! ",0
#.byte 9,9," MAYBE HE CAN SOLVE ",0
#.byte 9,11," ALL OF OUR DEEP ",0
#.byte 9,13," FAMILY PROBLEMS ",0
#.byte 9,15," WHILE I MESS ",0
#.byte 9,17," WITH MY BOOKS. ",0
#.byte 9,19," YOURS, ",0
#.byte 9,21," ATRUS ",0

View File

@ -79,7 +79,7 @@ MIST_TREE_CORRIDOR_2 = 13
MIST_TREE_CORRIDOR_5 = 14
MIST_GEAR = 15
MIST_GEAR_BASE = 16
;MIST_DENTIST_DOOR = 17
MIST_CAT_LETTER = 17
MIST_SPACESHIP_SWITCH = 18
MIST_TREE_CORRIDOR_4 = 19
MIST_UNUSED = 20
@ -103,7 +103,7 @@ MIST_TOWER1_TRAIL2 = 37
MIST_TOWER1_BOTTOM = 38
MIST_TOWER1_TOP = 39
MIST_VIEWER_DOOR = 40
; re-use 17,20,25
; re-use 20,25
; Mist Octagon Building

View File

@ -13,6 +13,7 @@ mist_graphics.inc: \
dock_n.lzsa dock_s.lzsa dock_e.lzsa dock_w.lzsa dock_w_open.lzsa \
dock_switch_n.lzsa dock_switch_s.lzsa \
dock_steps_w.lzsa \
cat_letter.lzsa \
above_dock_e.lzsa above_dock_n.lzsa above_dock_s.lzsa \
step_base_s.lzsa step_base_n.lzsa \
step_land1_w.lzsa step_land1_e.lzsa \
@ -54,6 +55,7 @@ mist_graphics.inc: \
echo "dock_switch_n_lzsa: .incbin \"dock_switch_n.lzsa\"" >> mist_graphics.inc
echo "dock_switch_s_lzsa: .incbin \"dock_switch_s.lzsa\"" >> mist_graphics.inc
echo "dock_steps_w_lzsa: .incbin \"dock_steps_w.lzsa\"" >> mist_graphics.inc
echo "cat_letter_lzsa: .incbin \"cat_letter.lzsa\"" >> mist_graphics.inc
echo "above_dock_e_lzsa: .incbin \"above_dock_e.lzsa\"" >> mist_graphics.inc
echo "above_dock_s_lzsa: .incbin \"above_dock_s.lzsa\"" >> mist_graphics.inc
echo "above_dock_n_lzsa: .incbin \"above_dock_n.lzsa\"" >> mist_graphics.inc

Binary file not shown.

After

Width:  |  Height:  |  Size: 933 B

View File

@ -6,6 +6,7 @@ dock_w_open_lzsa: .incbin "dock_w_open.lzsa"
dock_switch_n_lzsa: .incbin "dock_switch_n.lzsa"
dock_switch_s_lzsa: .incbin "dock_switch_s.lzsa"
dock_steps_w_lzsa: .incbin "dock_steps_w.lzsa"
cat_letter_lzsa: .incbin "cat_letter.lzsa"
above_dock_e_lzsa: .incbin "above_dock_e.lzsa"
above_dock_s_lzsa: .incbin "above_dock_s.lzsa"
above_dock_n_lzsa: .incbin "above_dock_n.lzsa"

View File

@ -143,8 +143,8 @@ location6:
.word step_land2_w_lzsa ; west bg
.byte BG_WEST | BG_EAST
.byte DIRECTION_W ; special exit (letter)
.byte 29,32 ; special x
.byte 38,45 ; special y
.byte 27,32 ; special x
.byte 36,45 ; special y
.word read_letter-1
@ -163,7 +163,7 @@ location7:
.word step_dentist_e_lzsa ; east bg
.word step_dentist_w_lzsa ; west bg
.byte BG_EAST|BG_WEST|BG_NORTH
.byte DIRECTION_N ; special exit (letter)
.byte DIRECTION_N ; special exit
.byte 10,30 ; special x
.byte 0,46 ; special y
.word goto_dentist-1
@ -342,21 +342,21 @@ location16:
.byte BG_NORTH | BG_EAST
.byte $ff ; special exit
; MIST_DENTIST_DOOR (unused) -- dentist door
; MIST_CAT_LETTER -- catherine letter
location17:
.byte $ff ; north exit
.byte MIST_STEPS_4TH_LANDING ; south exit
.byte MIST_STEPS_2ND_LANDING ; north exit
.byte $ff ; south exit
.byte $ff ; east exit
.byte $ff ; west exit
.byte DIRECTION_N ; north exit_dir
.byte DIRECTION_W ; south exit_dir
.byte DIRECTION_W ; north exit_dir
.byte $ff ; south exit_dir
.byte $ff ; east exit_dir
.byte $ff ; west exit_dir
.word $0000 ; north bg
.word cat_letter_lzsa ; north bg
.word $0000 ; south bg
.word $0000 ; east bg
.word $0000 ; west bg
.byte BG_NORTH | BG_SOUTH
.byte BG_NORTH
.byte $ff ; special exit
; MIST_SPACESHIP_SWITCH -- spaceship switch

View File

@ -296,28 +296,27 @@ set_level_over:
rts
;===========================
; read letter from catherine
read_letter:
lda #MIST_CAT_LETTER
sta LOCATION
lda #DIRECTION_N
sta DIRECTION
jsr change_location
bit SET_TEXT
rts
;==========================
; 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 "audio.s"
.include "end_level.s"
.include "common_sprites.inc"
.endif
; graphics data
.include "graphics_mist/mist_graphics.inc"
@ -329,14 +328,7 @@ set_level_over:
; linking books
; letters
.include "letter_cat.s"
; .include "letter_cat.s"
; level data
.include "leveldata_mist.inc"
;.align $100
;audio_red_page:
;.incbin "audio/red_page.btc"