mist: add some missing files, also can close generator door

This commit is contained in:
Vince Weaver 2020-08-04 14:52:31 -04:00
parent df5c281789
commit ca7c051480
7 changed files with 32 additions and 2 deletions

View File

@ -111,6 +111,14 @@ done_turn_on_breaker:
open_gen_door:
lda gen_door_status
eor #$1
sta gen_door_status
beq gen_close_door
gen_open_door:
ldy #LOCATION_NORTH_EXIT
lda #GEN_GENERATOR_ROOM
sta location3,Y ; GEN_GENERATOR_DOOR
@ -125,10 +133,32 @@ open_gen_door:
lda #>gen_door_open_n_lzsa
sta location3+1,Y ; GEN_GENERATOR_DOOR
jsr change_location
jmp change_location
rts
gen_close_door:
; disable exit
ldy #LOCATION_NORTH_EXIT
lda #$ff
sta location3,Y ; GEN_GENERATOR_DOOR
ldy #LOCATION_NORTH_EXIT_DIR
lda #$ff
sta location3,Y ; GEN_GENERATOR_DOOR
; change background
ldy #LOCATION_NORTH_BG
lda #<gen_door_closed_n_lzsa
sta location3,Y ; GEN_GENERATOR_DOOR
lda #>gen_door_closed_n_lzsa
sta location3+1,Y ; GEN_GENERATOR_DOOR
jmp change_location
gen_door_status:
.byte $00 ; closed
button_lookup:
.byte $10,$8,$4,$2,$1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 416 B

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Binary file not shown.