ootw: c1: slugs are re-initialized right and fall properly

This commit is contained in:
Vince Weaver 2019-08-19 23:55:31 -04:00
parent fd070d412d
commit 6ff16ef592
3 changed files with 56 additions and 46 deletions

View File

@ -11,13 +11,9 @@ TODO Before release:
when calculating room calcs, take Y position into account
L1 -- fix beast ending
L1 -- have beast collapse
L1 -- fix slugs
+ slugs on ceiling drop
+ adjust slug attack range
+ spawn new slugs in 2nd room
+ be sure can jump over slugs
L2 -- add doors
L2 -- disable door/powerline by shooting wall
@ -76,7 +72,6 @@ BEHAVIOR DIFFERENCES:
- small things like birds flying are not implemented
* caverns:
- slugs possibly can fall due to earthquake?
- beast on hill and 2nd screen -- complex, only appears if
you happen to leave same time beast does? then movement
depends on xposition?
@ -91,6 +86,9 @@ BEHAVIOR DIFFERENCES:
- beast should climb hill in rope room better
- beast has shadow when standing
* slugs:
- slugs possibly can fall due to earthquake?
- they should explode away from kick (what's it doing now)
+ Level/Checkpoint 2

View File

@ -105,6 +105,21 @@ slugg6_falling: .byte 0
init_slugs:
; outside loop, init ceiling-ness
; ground slugs
lda #30
sta slugg0_y
sta slugg3_y
sta slugg4_y
sta slugg5_y
; ceiling slugs
lda #2
sta slugg1_y
sta slugg2_y
sta slugg6_y
ldx #0
init_slug_loop:
@ -302,8 +317,8 @@ no_attack:
sec
sbc PHYSICIST_X
clc
adc #5
cmp #10
adc #8 ; fall if within 8 of physicist
cmp #16
bcs no_falling ; bge
lda #1
@ -392,6 +407,10 @@ check_draw_falling:
tay
dey
lda FRAMEL ; slow things down
and #$f
bne done_falling_slugs
; actually fall
cpy #7
beq falling_slugs

View File

@ -48,7 +48,7 @@ slug_falling_progression_hi:
.byte >slug_falling8 ; 9
.byte >slug_falling9 ; 10
.byte >slug_falling10 ; 11
.byte >slug_falling11 ; 12
.byte >slug_falling7 ; 12
slug_falling_progression_lo:
.byte <slug_falling1
@ -64,7 +64,7 @@ slug_falling_progression_lo:
.byte <slug_falling8
.byte <slug_falling9
.byte <slug_falling10
.byte <slug_falling11
.byte <slug_falling7
@ -86,62 +86,55 @@ slug_falling3:
.byte $AA,$AA,$00
slug_falling4:
.byte 2,2
.byte 3,2
.byte $AA,$00,$AA
.byte $AA,$00,$AA
slug_falling5:
.byte 2,2
.byte 3,2
.byte $AA,$00,$AA
.byte $0A,$A0,$AA
slug_falling6:
.byte 2,2
.byte 3,2
.byte $AA,$00,$AA
.byte $AA,$A0,$0A
slug_falling12:
.byte 2,4
.byte $AA,$00
.byte $AA,$00
.byte $AA,$00
.byte $AA,$00
slug_falling7:
.byte 4,4
.byte $AA,$AA,$AA,$AA
.byte $AA,$AA,$AA,$AA
.byte $AA,$AA,$AA,$AA
.byte $AA,$0A,$00,$0A
.byte 3,4
.byte $AA,$AA,$AA
.byte $AA,$AA,$AA
.byte $AA,$AA,$AA
.byte $0A,$00,$0A
slug_falling8:
.byte 4,4
.byte $AA,$AA,$AA,$AA
.byte $AA,$AA,$AA,$AA
.byte $AA,$0A,$AA,$AA
.byte $AA,$aA,$A0,$0A
.byte 3,4
.byte $AA,$AA,$AA
.byte $AA,$AA,$AA
.byte $0A,$AA,$AA
.byte $aA,$A0,$0A
slug_falling9:
.byte 4,4
.byte $AA,$AA,$AA,$AA
.byte $AA,$AA,$AA,$AA
.byte $0A,$AA,$AA,$AA
.byte $AA,$a0,$0A,$AA
.byte 3,4
.byte $AA,$AA,$AA
.byte $AA,$AA,$AA
.byte $0A,$AA,$AA
.byte $00,$a0,$0A
slug_falling10:
.byte 4,4
.byte $AA,$AA,$AA,$AA
.byte $AA,$AA,$AA,$AA
.byte $0A,$AA,$AA,$AA
.byte $00,$0A,$0A,$AA
slug_falling11:
.byte 4,4
.byte $AA,$AA,$AA,$AA
.byte $AA,$AA,$AA,$AA
.byte $AA,$AA,$AA,$AA
.byte $0A,$00,$00,$0A
slug_falling12:
.byte 4,4
.byte $AA,$00,$AA,$AA
.byte $AA,$00,$AA,$AA
.byte $AA,$00,$AA,$AA
.byte $AA,$00,$AA,$AA
.byte 3,4
.byte $AA,$AA,$AA
.byte $AA,$AA,$AA
.byte $0A,$AA,$AA
.byte $00,$0A,$0A