(03-30-2023, 02:35 PM)RokCoder Wrote:(03-30-2023, 01:57 PM)madscijr Wrote: My final question is about the background stars. A few seconds into the game, the background turns from black to gray. Is this supposed to happen? How can we keep the background black?
I imagine the palettes have been messed up somewhere along the line. The way the original works is to update four colours of the eight colour palette when it's doing the palette updates. That's why you have the set of sprites in the sprite sheet that are in four colours of grey - they're the ones that are assigned different colours from time to time. As you're basically updating all of the sprites and disregarding any use of palette switching, you might as well use the HI-RES setting to disable palette switching completely when set to 1.
Thanks for your quick reply. I think what's happening is when a bomb hits, the screen flashes as part of the explosion effect, but it isn't returning to black.
^^^ after trying it some more, I don't think that's happening, I am not sure what is turning the screen gray after a few seconds!
I'm not sure where in the code the palette switching is happening, if you get a minute to point out which line(s) need changing, that would be great.
^^^ Update #2: I think I found it, if anything else needs changing let me know:
Code: (Select All)
Sub NextPalette
$IF HI_RES THEN
Exit Sub ' UNTIL WE CAN FIX THE SCREEN TURNING GRAY?
$END IF
SetPalette (game.currentPalette% + 1) Mod 7
End Sub
Thanks again!