Jump to content
IGNORED

Creating two colored players


raross1980

Recommended Posts

There are a few ways...combining a sprite with one of the other objects (player, missile, or ball), altering the color of the player on each scanline, or flickering the color & sprite shape to be different on alternate frames.

 

Due to kernel timing (or lack of), the last one is probably the easiest to accomplish as you don't need to change the display kernel at all...just checking if the frame counter is odd or even and then adjusting the sprite pointer and color accordingly before the display is even rendered. Of course, you'd still need to free some romspace to hold the the alternate sprite shapes and color. So the word "easiest" is still highly dependant on how familiar you are with working on disassembled games.

 

On that note, there is one way which only requires 3 bytes of spare romspace. Works best for any non-bankswitched 2k or 4k game which does not already flicker the sprite. It involves doubling the rom to be two copies pasted back-to-back. At some point of the program which is executed on every frame, hack in a JMP (for 2k games doubled to 4k), or bankswitch hotspot trigger (for 4k games doubled to 8k) to point to the other copy, and visa-versa for the code in the alternate copy. During execution, the game will be rapidly switching between the two copies on alternate frames...so any of the sprite shapes or colors (and even playfield data) can differ between the two copies.

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...