Jump to content
IGNORED

Freeway; Would Like to add more time


Atari2600VCS

Recommended Posts

       LDA    $88     ;3 (red color/screensaver)
      LDY    $E6     ;3 Check game state
      BNE    LF05D   ;2 branch if game over
      LDY    $E9     ;3 load timer (high)
      CPY    #$20    ;2 = 32?
      BCC    LF055   ;2 branch if less
      INC    $E6     ;5 bump game state (game over)
LF055: CPY    #$1E    ;2 timer (high) = 30?
      BCC    LF05D   ;2 branch if less
      LDA    $81     ;3 use framecounter for color
      AND    $87     ;3 adjust for color/B&W
LF05D: STA    COLUP0  ;3 store to both sprites
      STA    COLUP1  ;3 ..

 

To triple the amount of time, change the #$20 at $F050 to be #$60. However, this does not change the amount of time before the scores begin to flash. You can change that at $F056 (you'd alter the #$1E to #$5E at $F056 in this case to make the score flash about 5 seconds from game end).

Long_Freeway.bin

Edited by Nukey Shay
Link to comment
Share on other sites

       LDA    $88     ;3 (red color/screensaver)
      LDY    $E6     ;3 Check game state
      BNE    LF05D   ;2 branch if game over
      LDY    $E9     ;3 load timer (high)
      CPY    #$20    ;2 = 32?
      BCC    LF055   ;2 branch if less
      INC    $E6     ;5 bump game state (game over)
LF055: CPY    #$1E    ;2 timer (high) = 30?
      BCC    LF05D   ;2 branch if less
      LDA    $81     ;3 use framecounter for color
      AND    $87     ;3 adjust for color/B&W
LF05D: STA    COLUP0  ;3 store to both sprites
      STA    COLUP1  ;3 ..

 

To triple the amount of time, change the #$20 at $F050 to be #$60. However, this does not change the amount of time before the scores begin to flash. You can change that at $F056 (you'd alter the #$1E to #$5E at $F056 in this case to make the score flash about 5 seconds from game end).

 

 

Thank you Nukey Shay, that's awesome, you're the best! I can now run like a chicken in a marathon.

.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...