I have a demo with a firery background and i wish to 'flicker' the fire by cycling one of the colors in my palettes.
I've been able to get the colors switched however the screen shakes for a split second when i do this.
(I've put my color change call right after V-blank but it doesn't help.)
Just for fun I also tried inline asm to just store the value at address 3F01 but that didn't work at all :
I'm simply trying to do the realtime color cycling super mario bros does with it's coin/question block color. (SMB is glitch free of course.)
I've been able to get the colors switched however the screen shakes for a split second when i do this.
(I've put my color change call right after V-blank but it doesn't help.)
Code:
//accessing the 2nd color in the palette (3F01)
//knes
PPU_ADDR(0x3F01); //writes the high and low byte of the address
PPU.data = palette_fire2; //stores the new color
//knes
PPU_ADDR(0x3F01); //writes the high and low byte of the address
PPU.data = palette_fire2; //stores the new color
Just for fun I also tried inline asm to just store the value at address 3F01 but that didn't work at all :
Code:
__asm__ ("lda %v", palette_fire);
__asm__ ("sta $3F01");
__asm__ ("sta $3F01");
I'm simply trying to do the realtime color cycling super mario bros does with it's coin/question block color. (SMB is glitch free of course.)