diff --git a/mist/generator_puzzle.s b/mist/generator_puzzle.s index a99c0b13..babf99f1 100644 --- a/mist/generator_puzzle.s +++ b/mist/generator_puzzle.s @@ -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+1,Y ; GEN_GENERATOR_DOOR + + jmp change_location + + +gen_door_status: + .byte $00 ; closed button_lookup: .byte $10,$8,$4,$2,$1 diff --git a/mist/graphics_dni/atrus_desk.png b/mist/graphics_dni/atrus_desk.png index 9f3ec53d..af8d4e95 100644 Binary files a/mist/graphics_dni/atrus_desk.png and b/mist/graphics_dni/atrus_desk.png differ diff --git a/mist/graphics_mist/spaceship_far_n.png b/mist/graphics_mist/spaceship_far_n.png index 3dd2df0c..97a258ff 100644 Binary files a/mist/graphics_mist/spaceship_far_n.png and b/mist/graphics_mist/spaceship_far_n.png differ diff --git a/mist/graphics_sprite/sprites.png b/mist/graphics_sprite/sprites.png index bc93b9ed..3c32ee75 100644 Binary files a/mist/graphics_sprite/sprites.png and b/mist/graphics_sprite/sprites.png differ diff --git a/mist/graphics_sub/sub_animations.png b/mist/graphics_sub/sub_animations.png index 3ededf2b..866854da 100644 Binary files a/mist/graphics_sub/sub_animations.png and b/mist/graphics_sub/sub_animations.png differ diff --git a/mist/mist.dsk b/mist/mist.dsk index 18b99e67..67f8e439 100644 Binary files a/mist/mist.dsk and b/mist/mist.dsk differ diff --git a/mist/mist_side3.dsk b/mist/mist_side3.dsk index 324c096a..7b57a507 100644 Binary files a/mist/mist_side3.dsk and b/mist/mist_side3.dsk differ