mist: can look at blue book now

red book animation temporarily disabled
This commit is contained in:
Vince Weaver 2020-05-15 15:54:24 -04:00
parent 5b75e5cd02
commit 659e86d140
5 changed files with 131 additions and 9 deletions

View File

@ -1,8 +1,7 @@
;===========================
; open the red book
; Touch the red book
;===========================
red_book:
touch_red_book:
; if have a red page, take it and increment count
@ -17,11 +16,52 @@ red_book:
not_red_page:
bit KEYRESET
lda #0
sta FRAMEL
lda #OCTAGON_RED_BOOK_CLOSED
sta LOCATION
jsr change_location
rts
;===========================
; Touch the blue book
;===========================
touch_blue_book:
; if have a blue page, take it and increment count
lda HOLDING_PAGE
cmp #HOLDING_BLUE_PAGE
bne not_blue_page
lda #0 ; put down page
sta HOLDING_PAGE
inc BLUE_PAGE_COUNT ; increment page count
not_blue_page:
lda #0
sta FRAMEL
lda #OCTAGON_BLUE_BOOK_CLOSED
sta LOCATION
jsr change_location
rts
red_book_loop:
lda #<red_book_static_lzsa
@ -108,8 +148,12 @@ red_book_done:
;==========================
; books dialog
;==========================
; comment summary
;==========================
; red/sirrus
; red 0
; only static
@ -118,6 +162,9 @@ red_book_done:
; who are you, bring me a red page, I can't see you
; I am sirrus
;==========================
; blue/Achenar
; blue 0
; only static

View File

@ -17,6 +17,7 @@ octagon_graphics.inc: \
temple_center_open_n.lzsa temple_center_closed_s.lzsa \
red_book_shelf.lzsa \
red_book_open.lzsa red_book_closed.lzsa \
blue_book_open.lzsa blue_book_closed.lzsa \
red_book_static.lzsa red_book_static2.lzsa \
fireplace_e.lzsa \
in_fireplace_w.lzsa in_fireplace_door.lzsa \
@ -71,6 +72,8 @@ octagon_graphics.inc: \
echo "frame_door_open_lzsa: .incbin \"frame_door_open.lzsa\"" >> octagon_graphics.inc
echo "frame_bookcase_open_lzsa: .incbin \"frame_bookcase_open.lzsa\"" >> octagon_graphics.inc
echo "blue_book_shelf_lzsa: .incbin \"blue_book_shelf.lzsa\"" >> octagon_graphics.inc
echo "blue_book_open_lzsa: .incbin \"blue_book_open.lzsa\"" >> octagon_graphics.inc
echo "blue_book_closed_lzsa: .incbin \"blue_book_closed.lzsa\"" >> octagon_graphics.inc
echo "bookshelf_n_lzsa: .incbin \"bookshelf_n.lzsa\"" >> octagon_graphics.inc
echo "bookshelf_open_n_lzsa: .incbin \"bookshelf_open_n.lzsa\"" >> octagon_graphics.inc
echo "bookshelf_close_n_lzsa: .incbin \"bookshelf_close_n.lzsa\"" >> octagon_graphics.inc

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@ -10,7 +10,9 @@ locations:
.word location12,location13,location14,location15
.word location16,location17,location18,location19
.word location20,location21,location22,location23
.word location24,location25,location26
.word location24,location25,location26,location27
.word location28,location29,location30
; OCTAGON_TEMPLE_DOORWAY -- temple doorway
location0:
@ -72,7 +74,7 @@ location2:
.byte DIRECTION_W ; special exit
.byte 16,25 ; special x
.byte 16,32 ; special y
.word red_book-1 ; special function
.word touch_red_book-1 ; special function
; OCTAGON_FIREPLACE -- fireplace
location3:
@ -216,7 +218,10 @@ location10:
.word blue_book_shelf_lzsa ; east bg
.word $0000 ; west bg
.byte BG_EAST
.byte $ff
.byte DIRECTION_E ; special exit
.byte 16,25 ; special x
.byte 16,32 ; special y
.word touch_blue_book-1 ; special function
; OCTAGON_TOWER_ROTATION -- looking at tower rotation
location11:
@ -499,3 +504,70 @@ location26:
.byte BG_SOUTH|BG_NORTH
.byte $ff
; OCTAGON_RED_BOOK_CLOSED -- red book, but closed
location27:
.byte $ff ; north exit
.byte $ff ; south exit
.byte $ff ; east exit
.byte OCTAGON_RED_BOOK_OPEN ; west exit
.byte $ff ; north exit_dir
.byte $ff ; south exit_dir
.byte $ff ; east exit_dir
.byte DIRECTION_W|DIRECTION_ONLY_POINT ; west exit_dir
.word $0000 ; north bg
.word $0000 ; south bg
.word $0000 ; east bg
.word red_book_closed_lzsa ; west bg
.byte BG_WEST ; west
.byte $ff
; OCTAGON_RED_BOOK_OPEN -- red book, but closed
location28:
.byte $ff ; north exit
.byte $ff ; south exit
.byte $ff ; east exit
.byte OCTAGON_TEMPLE_CENTER ; west exit
.byte $ff ; north exit_dir
.byte $ff ; south exit_dir
.byte $ff ; east exit_dir
.byte DIRECTION_W|DIRECTION_ONLY_POINT ; west exit_dir
.word $0000 ; north bg
.word $0000 ; south bg
.word $0000 ; east bg
.word red_book_open_lzsa ; west bg
.byte BG_WEST ; west
.byte $ff
; OCTAGON_BLUE_BOOK_CLOSED -- blue book, but closed
location29:
.byte $ff ; north exit
.byte $ff ; south exit
.byte OCTAGON_BLUE_BOOK_OPEN ; east exit
.byte $ff ; west exit
.byte $ff ; north exit_dir
.byte $ff ; south exit_dir
.byte DIRECTION_E ; east exit_dir
.byte $ff ; west exit_dir
.word $0000 ; north bg
.word $0000 ; south bg
.word blue_book_closed_lzsa ; east bg
.word $0000 ; west bg
.byte BG_EAST ; east
.byte $ff
; OCTAGON_BLUE_BOOK_OPEN -- blue book, but open
location30:
.byte $ff ; north exit
.byte $ff ; south exit
.byte OCTAGON_TEMPLE_CENTER ; east exit
.byte $ff ; west exit
.byte $ff ; north exit_dir
.byte $ff ; south exit_dir
.byte DIRECTION_E|DIRECTION_ONLY_POINT ; east exit_dir
.byte $ff ; west exit_dir
.word $0000 ; north bg
.word $0000 ; south bg
.word blue_book_open_lzsa ; east bg
.word $0000 ; west bg
.byte BG_EAST ; east
.byte $ff