junglejourney

changeset 199:aa9f05624182

Ensured that the keyboard controls cannot be used if the game is started with the joystick's Fire button. Fixed use of incorrectly initialised zero page memory when moving the projectile - this could cause an enemy to be destroyed if the player stood by a wall and fired a projectile at it. Added a *TAPE call to the loader to ensure that DFS workspace is no longer in use.
author David Boddie <david@boddie.org.uk>
date Sun Oct 02 19:45:54 2011 +0200
parents c0287a81583a
children 2e43c7e90f42
files loader.oph mapcode.oph
diffstat 2 files changed, 18 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/loader.oph	Sat Oct 01 18:19:29 2011 +0200
     1.2 +++ b/loader.oph	Sun Oct 02 19:45:54 2011 +0200
     1.3 @@ -83,6 +83,9 @@
     1.4      ldy #>code_block
     1.5      jsr $ffdd
     1.6  
     1.7 +    lda #140
     1.8 +    jsr $fff4   ; *TAPE
     1.9 +
    1.10      jsr copy_title_down
    1.11      jsr move_completed_screen_down
    1.12  
    1.13 @@ -114,8 +117,8 @@
    1.14  code_block: .byte <code_file_name, >code_file_name
    1.15                 .byte $00, $1e, 0, 0
    1.16                 .byte $00, $1e, 0, 0
    1.17 -               .byte $22, $20, 0, 0
    1.18 -               .byte $22, $3e, 0, 0
    1.19 +               .byte $32, $20, 0, 0
    1.20 +               .byte $32, $3e, 0, 0
    1.21  
    1.22  init_load_window_vdu_bytes: .byte 28,0,30,19,27
    1.23  
     2.1 --- a/mapcode.oph	Sat Oct 01 18:19:29 2011 +0200
     2.2 +++ b/mapcode.oph	Sun Oct 02 19:45:54 2011 +0200
     2.3 @@ -1778,9 +1778,13 @@
     2.4  
     2.5      move_player_check_joystick_up:
     2.6      cpy #144
     2.7 -    bcc move_player_handle_left_key
     2.8 +    bcc move_player_no_joystick_input
     2.9      jmp move_player_up      ; >= 16
    2.10  
    2.11 +    move_player_no_joystick_input:
    2.12 +    clc
    2.13 +    rts
    2.14 +
    2.15      move_player_handle_left_key:
    2.16  
    2.17      ; Handle the left key.
    2.18 @@ -2203,6 +2207,9 @@
    2.19      and #1
    2.20      bne check_fire_key_fire
    2.21  
    2.22 +    clc
    2.23 +    rts
    2.24 +
    2.25      check_fire_key_no_joystick:
    2.26  
    2.27      ldx #182            ; (Return)
    2.28 @@ -2272,7 +2279,12 @@
    2.29  
    2.30      ; Move the projectile away from the player.
    2.31  
    2.32 +    lda #$86
    2.33 +    sta $74
    2.34 +    lda #$52
    2.35 +    sta $75
    2.36      jsr move_projectile_after_unplot
    2.37 +
    2.38      jsr move_projectile
    2.39  
    2.40      clc