+atari2600land Posted October 5, 2021 Share Posted October 5, 2021 So in my game, I have a multicolored sprite (player 0.) And a missile to match (missile 0.) Where I've discovered something a bit odd about its color. When you shoot and travel down, missile 0 changes color to yellow. But if you shoot and travel up, it changes to black. I am just wondering if there was a way to change the black into yellow. My code is attached. burger12.asm Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted October 6, 2021 Author Share Posted October 6, 2021 If some moderator could move this to the Atari 2600 programming section, that would be really nice. I thought I was on that page when I made the post, but I guess not. Quote Link to comment Share on other sites More sharing options...
Omegamatrix Posted October 6, 2021 Share Posted October 6, 2021 Here is a partial solution. Just search for Omega in the assembly. burger12(mod).asm M0 shares its color with P0. When firing without moving up or down the color stays the same, and is the color of the burger on that line. When moving up or down the shot is above or below the line the missile is on, and since P0 is a multicolor sprite the colors have changed. Finally it looks like in the code the color for P0 was being updated all the time, but the graphics wasn't. That works until you get to the present situation. So I put in a branch to skip the color updates when P0 is not being drawn, and set the color of P0 during VBLANK. This will not stop the colors from strobbing while moving the burger but minimize it. BTW the normal solution in this circumstance is to use the Ball, but since the playfield is being used this won't work. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted October 6, 2021 Author Share Posted October 6, 2021 Thanks! That was just what I was after. I know missile0 has to be the same color as the burger when it and the burger are on the same y position, but I figured if it was showing yellow one way, I wondered if I could get it showing the other way as well. burger14.asm 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.