Jump to content
IGNORED

Multicolor Sprite?


esplonky

Recommended Posts

You can't.

 

However, what you can do is combine/overlap multiple objects together. Your best bet is to examine other games to see how they do it. A recent example would be this by eshu.

 

post-3056-0-10843000-1332688389_thumb.png

 

Switch Stella to Fixed Debug Colors (COMMAND-Comma* on Mac, ALT-Comma on Linux/Windows). This draws each object (player0, player1, missile 0, etc) in a distinct color.

post-3056-0-95918900-1332688433_thumb.png

 

Nathan Strum posted this nice fixed debug color guide, with which we can see that the snakes are drawn by overlapping Missile1 with Player0, while the people are drawn by overlapping the Ball with Player1.

post-3056-0-89583600-1332688896_thumb.gif

 

 

You can also toggle various objects on/off to see how the objects overlap(COMMAND-Z/X/C/V/B/N* or ALT and one of those letters for Linux/Windows)

post-3056-0-28571200-1332688670_thumb.png post-3056-0-53880800-1332688675_thumb.png

 

*In Stella's Help system go to Keyboard Layout section to see the keys and what they toggle on/off. They're listed in the table titled Developer Keys in TIA mode.

Edited by SpiceWare
  • Like 1
Link to comment
Share on other sites

That example is, of course, assembly magic. In bB you're limited to mixing the player0 sprite and virtual copies of player1. bB can't mangle the ball or missiles. This means that you could make a multi-color player sprite from player0 + player1 but the virtual sprites would cause major flicker when in line with the player.

Edited by theloon
Link to comment
Share on other sites

I forgot about a technique I used in CandyBar:

http://www.atariage....for-atari-2600/

 

Basically, I used a pink playfield pixel for the Chefs face. The drawbacks to mixing sprites and playfield pixels are:

A. In order to stay in place the sprite must move in playfield pixel steps. Very chunky movement.

B. Much harder to use collision with playfield for physics as part of the sprite IS a playfield pixel!

C. Every playfield block on the row you're currently on must be the same color as the playfield pixel used in your sprite.

Edited by theloon
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...