ootw: c2: enable power cable in basement

This commit is contained in:
Vince Weaver 2019-07-12 11:17:59 -04:00
parent e326850ea8
commit 84ee49868e
5 changed files with 63 additions and 5 deletions

View File

@ -17,6 +17,9 @@ ootw_c2:
sta ON_ELEVATOR
sta CITY_MOVIE_SEEN
lda #1
sta JAIL_POWER_ON
lda #22
sta PHYSICIST_Y
lda #20

View File

@ -238,6 +238,36 @@ jail_loop:
; draw background action
; FIXME
lda WHICH_JAIL
cmp #6
bne c2_no_bg_action
; draw power
lda JAIL_POWER_ON
beq c2_no_bg_action ; skip if power off already
lda #20
sta XPOS
lda #0
sta YPOS
lda FRAMEL
lsr
lsr
lsr
and #$6
tay
lda power_line_sprites,Y
sta INL
lda power_line_sprites+1,Y
sta INH
jsr put_sprite_crop
c2_no_bg_action:
;===============================
; check keyboard
@ -328,5 +358,28 @@ done_jail:
power_line_sprites:
.word power_line_sprite0
.word power_line_sprite1
.word power_line_sprite2
.word power_line_sprite3
power_line_sprite0:
.byte 1,8
; XXXoXXXoXXXoXXXo
.byte $77,$67,$77,$67,$77,$67,$77,$07
power_line_sprite1:
.byte 1,8
; XXoXXXoXXXoXXXoX
.byte $77,$76,$77,$76,$77,$76,$77,$06
power_line_sprite2:
.byte 1,8
; XoXXXoXXXoXXXoXX
.byte $67,$77,$67,$77,$67,$77,$67,$07
power_line_sprite3:
.byte 1,8
; oXXXoXXXoXXXoXXX
.byte $76,$77,$76,$77,$76,$77,$76,$07

View File

@ -264,9 +264,9 @@ dome_rle: .byte $28 ; ysize=48
.byte $A8,$00, $A0,$20,$88, $A8,$00, $AF,$88
.byte $A1
room_b2_rle: .byte $28 ; ysize=48
.byte $A0,$14,$88, $67, $A0,$27,$88, $77, $A0,$27,$88, $76, $A0,$27,$88
.byte $67, $A0,$27,$88, $77, $A0,$27,$88, $76, $A0,$27,$88, $67
.byte $A0,$23,$88, $A4,$08, $07, $A0,$13,$08, $A0,$10,$88, $00,$00, $55
.byte $A0,$14,$88, $55, $A0,$27,$88, $55, $A0,$27,$88, $55, $A0,$27,$88
.byte $55, $A0,$27,$88, $55, $A0,$27,$88, $55, $A0,$27,$88, $55
.byte $A0,$23,$88, $A4,$08, $05, $A0,$13,$08, $A0,$10,$88, $00,$00, $55
.byte $25, $55, $27, $2E, $2F, $2E, $67
.byte $25,$25, $55, $27, $2E, $2F, $2E, $27
.byte $65, $25, $27, $2E, $2F, $2E, $A0,$10,$88

Binary file not shown.

Before

Width:  |  Height:  |  Size: 327 B

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -181,11 +181,13 @@ INTRO_LOOPER = $F7 ; INTRO
TENTACLE_X = $F7 ; C1
CITY_MOVIE_SEEN = $F7 ; C2
ELEVATOR_CYCLE = $F8 ; INTRO
STATIC_LOOPER = $F8 ; INTRO
LEVELEND_PROGRESS = $F8 ; C1
SWING_PROGRESS = $F8 ; C1
TENTACLE_PROGRESS = $F8 ; C1
ELEVATOR_CYCLE = $F8 ; INTRO
STATIC_LOOPER = $F8 ; INTRO
JAIL_POWER_ON = $F8 ; C2
ELEVATOR_COUNT = $F9 ; INTRO
TENTACLE_GRAB = $F9 ; C1