Jump to content
Sign in to follow this  
neotokeo2001

Nukey?

Recommended Posts

Need some help if you have the time. :D I am looking for the background color location for Vanguard and Alien. Also is there any way to speed up the control of the ship in Vanguard. It seems to move half the speed it should.

Share this post


Link to post
Share on other sites

The background color is saved at 2 points in Alien...though in the disassembly, only 1 point can be located by searching for COLUBK: the bonus round...when the foreground and background are both zeroed - BTW the maze is still there ;)

 

LFD55:
      LDA    $80                    ;3
      AND    #$20                   ;2
      BEQ    LFD8D                  ;2
      LDA    #$00                   ;2 black background during bonus stage
      STA    COLUBK                 ;3

 

 

To locate the other point, I just traced the SWCHB equate. In Alien, the colors will be changed to monochrome when B&W is selected (the way that it does this is by using an AND value to strip away bits IF B&W is selected)...

       TXS                           ;2 start with %11111111
      LDA    SWCHB                  ;4
      AND    #$08                   ;2 check B&W
      BNE    LF766                  ;2 if color, skip next line
      LDX    #$0D                   ;2 use %00001101 instead
LF766:
      TXA                           ;2 move that bit pattern to A
      LDY    #$00                   ;2
      BIT    $80                    ;3
      BVC    LF773                  ;2
      LDY    $BF                    ;3
      ORA    #$02                   ;2
      AND    #$F6                   ;2
LF773:
      STA    $9E                    ;3 save the bit pattern to $9E
      STY    $84                    ;3
      LDA    $E8                    ;3
      BNE    LF78F                  ;2
      LDX    #$08                   ;2
LF77D:
      LDA    LFE3C,X                ;4 get value from a table
      EOR    $84                    ;3
      AND    $9E                    ;3 strip away bits when B&W
      STA    $F5,X                  ;4
      CPX    #$07                   ;2
      BCC    LF78C                  ;2
      STA    VBLANK,X               ;4 when X = 7 or 8, save to the color registers

 

So all that really needs changing is the last 2 bytes in table LFE3C...

 

LFE3C:
      .byte $BE; |X XXXXX | $FE3C
      .byte $1E; |   XXXX | $FE3D
      .byte $5E; | X XXXX | $FE3E
      .byte $8E; |X   XXX | $FE3F
      .byte $4E; | X  XXX | $FE40
      .byte $1E; |   XXXX | $FE41
      .byte $8E; |X   XXX | $FE42
      .byte $60; | XX     | $FE43 wall color in maze section
      .byte $84; |X    X  | $FE44 screen color in maze section

 

 

 

VERY rough disassembly + cfg...

Alien.zip

Share this post


Link to post
Share on other sites

I'm not clear on what you had in mind for Vanguard (because making the player's ship faster would make the game too easy IMO)...but here's a rough disassembly of that game:

Vanguard.zip

Share this post


Link to post
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.

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...