Jump to content
IGNORED

Yars revenge 'safe zone' effect in player sprite?


Recommended Posts

Is there a simple way to get the yars revenge safe zone effect into the player sprite? I tried pointing the color to some random adres Banks, but most don't do anything interesting and don't give a psychadellic number. The best I found was playfieldpos as it loops between 1-8.

 

In my current code it also colours the entire player in one solid colour. I imagine that a better way is possible where every row has its own color?

Link to comment
Share on other sites

If I get it correctly this doesn't change the color but the shape right? You just get a messy block of stuff. Right now I changed the color to a random number.

 

Right - a messy block of stuff like the Yars Revenge safe zone. If you were doing it line by line in assembly, you could use a mask to impose a shape. Within the constraints of bB, all I can think of offhand is to use the other player sprite, set it to the background color, and have the inverse of the desired shape to hide the unwanted pixels.

Link to comment
Share on other sites

If you want to randomize the color, but not the player pixels, then modify the yars example to include these constants:

 

 const player0colorlo=player0color
 const player0colorhi=player0color+1

and then change each reference of "player0pointer" to "player0color". (assuming you're using the playercolors option for P0, or player1colors option for P1)

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