mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-06 06:30:36 +00:00
lemm: can now beat level8 with blockers
This commit is contained in:
parent
99bd6a8744
commit
2c292a3654
@ -232,24 +232,6 @@ return_check_lemming:
|
|||||||
pha
|
pha
|
||||||
rts ; jump to it
|
rts ; jump to it
|
||||||
|
|
||||||
; cmp #1
|
|
||||||
; beq make_climber
|
|
||||||
; cmp #2
|
|
||||||
; beq make_floater
|
|
||||||
; cmp #3
|
|
||||||
; beq make_exploding
|
|
||||||
; cmp #4
|
|
||||||
; beq make_stopper
|
|
||||||
; cmp #5
|
|
||||||
; beq make_builder
|
|
||||||
; cmp #6
|
|
||||||
; beq make_basher
|
|
||||||
; cmp #7
|
|
||||||
; beq make_miner
|
|
||||||
; cmp #8
|
|
||||||
; beq make_digger
|
|
||||||
; bne done_keypress
|
|
||||||
|
|
||||||
|
|
||||||
not_over_lemming:
|
not_over_lemming:
|
||||||
|
|
||||||
@ -326,14 +308,16 @@ make_stopper:
|
|||||||
beq cant_stop
|
beq cant_stop
|
||||||
cmp #LEMMING_FALLING ; can't stop if falling
|
cmp #LEMMING_FALLING ; can't stop if falling
|
||||||
beq cant_stop
|
beq cant_stop
|
||||||
|
cmp #LEMMING_STOPPING ; an unmoving object can't be
|
||||||
|
beq cant_stop ; stopped!
|
||||||
|
|
||||||
lda #LEMMING_STOPPING
|
lda #LEMMING_STOPPING
|
||||||
sta lemming_status,Y
|
sta lemming_status,Y
|
||||||
|
|
||||||
; put line on page2 to make lemmings reverse
|
; put line on page2 to make lemmings reverse
|
||||||
|
|
||||||
; line from (x,a) to (x,a+y)
|
; line from (x,a) to (x,a+y)
|
||||||
lda #$7f
|
lda #$7
|
||||||
sta HGR_COLOR
|
sta HGR_COLOR
|
||||||
|
|
||||||
jsr hgr_vlin_page_toggle
|
jsr hgr_vlin_page_toggle
|
||||||
@ -344,10 +328,14 @@ make_stopper:
|
|||||||
adc lemming_x,Y
|
adc lemming_x,Y
|
||||||
asl
|
asl
|
||||||
adc lemming_x,Y
|
adc lemming_x,Y
|
||||||
|
adc #2 ; center a bit
|
||||||
|
|
||||||
tax
|
tax
|
||||||
lda lemming_y,Y
|
lda lemming_y,Y
|
||||||
ldy #10
|
clc
|
||||||
|
adc #3
|
||||||
|
|
||||||
|
ldy #7
|
||||||
|
|
||||||
jsr hgr_vlin
|
jsr hgr_vlin
|
||||||
|
|
||||||
|
@ -296,7 +296,7 @@ level_won:
|
|||||||
inc WHICH_LEVEL
|
inc WHICH_LEVEL
|
||||||
|
|
||||||
lda WHICH_LEVEL
|
lda WHICH_LEVEL
|
||||||
cmp #7
|
cmp #11
|
||||||
bcc level_continue
|
bcc level_continue
|
||||||
|
|
||||||
lda #1 ; wrap to level1?
|
lda #1 ; wrap to level1?
|
||||||
|
@ -39,7 +39,7 @@ do_level8:
|
|||||||
|
|
||||||
lda #9 ;
|
lda #9 ;
|
||||||
sta exit_x1_smc+1
|
sta exit_x1_smc+1
|
||||||
lda #13
|
lda #14
|
||||||
sta exit_x2_smc+1
|
sta exit_x2_smc+1
|
||||||
|
|
||||||
lda #112
|
lda #112
|
||||||
|
Loading…
Reference in New Issue
Block a user