mist: channelwood: hook up some of the switches

This commit is contained in:
Vince Weaver 2020-06-11 02:39:38 -04:00
parent 838b9e37a8
commit 2e773c48d2
5 changed files with 43 additions and 5 deletions

View File

@ -14,11 +14,12 @@ Selenetic
Channelwood:
+ Pain drawing the water, and trees, and boardwalk.
+ Pain drawing the water, and trees, and boardwalk,rocks.
At least no bricks or checkered floor in this age.
Thought was done with trees on Myst
Each major junction a hexagon with potentially 6 backgrounds.
Some of them you could split left or right mid screen.
In end just did the three ways that didn't need this.
Made it confusing to navigate at times, but I always felt
this level was confusing to navigate anyway.

View File

@ -142,6 +142,23 @@ really_exit:
jmp end_level
look_at_faucet:
lda #CHANNEL_TANK_CLOSE
sta LOCATION
jmp change_location
toggle_windmill:
lda CHANNEL_SWITCHES
eor #CHANNEL_SW_WINDMILL
sta CHANNEL_SWITCHES
rts
toggle_faucet:
lda CHANNEL_SWITCHES
eor #CHANNEL_SW_FAUCET
sta CHANNEL_SWITCHES
rts
back_to_mist:

View File

@ -59,6 +59,7 @@ init_state:
sta BATTERY_CHARGE
sta COMPASS_ANGLE
sta CRANK_ANGLE
sta CHANNEL_SWITCHES
lda #$ff ; for debugging
sta MARKER_SWITCHES

View File

@ -606,7 +606,10 @@ location33:
.word $0000 ; east bg
.word $0000 ; west bg
.byte BG_NORTH|BG_SOUTH
.byte $ff
.byte DIRECTION_N ; special exit
.byte 25,32 ; special x
.byte 40,46 ; special y
.word look_at_faucet-1 ; special function
; CHANNEL_TANK_CLOSE -- the faucet
location34:
@ -623,7 +626,10 @@ location34:
.word $0000 ; east bg
.word $0000 ; west bg
.byte BG_NORTH
.byte $ff
.byte DIRECTION_N ; special exit
.byte 15,25 ; special x
.byte 18,32 ; special y
.word toggle_faucet-1 ; special function
; CHANNEL_WINDMILL -- windmill machinery
location35:
@ -640,7 +646,10 @@ location35:
.word $0000 ; east bg
.word $0000 ; west bg
.byte BG_NORTH|BG_SOUTH
.byte $ff
.byte DIRECTION_N ; special exit
.byte 10,15 ; special x
.byte 30,38 ; special y
.word toggle_windmill-1 ; special function
; CHANNEL_OUT_BACK -- back door of windmill
location36:

View File

@ -133,6 +133,16 @@ BATTERY_CHARGE = $AE
COMPASS_ANGLE = $AF
CRANK_ANGLE = $B0
WHITE_PAGE_TAKEN= $B1
CHANNEL_SWITCHES= $B2
CHANNEL_SW1 = $01
CHANNEL_SW2 = $02
CHANNEL_SW3 = $04
CHANNEL_SW4 = $08
CHANNEL_SW5 = $10
CHANNEL_SW6 = $20
CHANNEL_SW_WINDMILL = $40
CHANNEL_SW_FAUCET = $80
; done game puzzle state