mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-08-07 16:25:16 +00:00
lemm: add cheat mode
This commit is contained in:
@@ -187,11 +187,28 @@ done_down_pressed:
|
|||||||
|
|
||||||
check_escape:
|
check_escape:
|
||||||
cmp #27
|
cmp #27
|
||||||
bne check_return
|
bne check_cheat
|
||||||
escape_pressed:
|
escape_pressed:
|
||||||
lda #LEVEL_FAIL
|
lda #LEVEL_FAIL
|
||||||
sta LEVEL_OVER
|
sta LEVEL_OVER
|
||||||
|
|
||||||
|
jmp done_keypress
|
||||||
|
|
||||||
|
check_cheat:
|
||||||
|
cmp #'!'
|
||||||
|
bne check_return
|
||||||
|
cheat_pressed:
|
||||||
|
|
||||||
|
lda #20
|
||||||
|
ldx #7
|
||||||
|
cheat_loop:
|
||||||
|
sta CLIMBER_COUNT,X
|
||||||
|
dex
|
||||||
|
bpl cheat_loop
|
||||||
|
|
||||||
|
jsr update_remaining_all
|
||||||
|
|
||||||
|
|
||||||
jmp done_keypress
|
jmp done_keypress
|
||||||
|
|
||||||
check_return:
|
check_return:
|
||||||
|
Reference in New Issue
Block a user