Coolcrab Posted October 9, 2018 Share Posted October 9, 2018 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? Quote Link to comment Share on other sites More sharing options...
+Karl G Posted October 9, 2018 Share Posted October 9, 2018 Assuming you are talking about bB, here's a link to a post that discusses this: http://atariage.com/forums/topic/120680-how-to-do-something-similar-to-the-ion-field-in-yars-revenge-in-asm/?do=findComment&comment=1464818 Quote Link to comment Share on other sites More sharing options...
RevEng Posted October 10, 2018 Share Posted October 10, 2018 Here's another that randomizes a player (instead of the playfield) from the bB tricks thread. (assumes standard kernel) Quote Link to comment Share on other sites More sharing options...
+Karl G Posted October 10, 2018 Share Posted October 10, 2018 Oh - I guess I didn't read that closely enough. Doing that with a sprite and a mask makes me think of Downland. Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted October 10, 2018 Author Share Posted October 10, 2018 Here's another that randomizes a player (instead of the playfield) from the bB tricks thread. (assumes standard kernel) 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. Quote Link to comment Share on other sites More sharing options...
+Karl G Posted October 10, 2018 Share Posted October 10, 2018 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. Quote Link to comment Share on other sites More sharing options...
RevEng Posted October 10, 2018 Share Posted October 10, 2018 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) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.