You are not logged in.
Pages: 1
One Idea I had for my hack would be to have the battle background to be black or another dark color, which would allow me to drop the black outlines and give a pokemon a third color in their pallet instead of white, changing the battle background and text boxes was easy, but the pokemon themselves are proving difficult.
I made this sprite recolor following my new rules and built the game
(I haven't messed with pidgey yet)
but it leaves my yellow color out for white
the normal.pal file only has two RGB values but the normal.gbcpal has four values bf23 ff14 021d 0000 which all matched the colors I used in my sprite using this converter http://www.budmelvin.com/dev/15bitconverter.html
Something is making the first value default to white, even if stated otherwise in the pallet.
Offline
came back to this after a few days
LoadPalette_White_Col1_Col2_Black on line 567 of color.asm is what I was looking for, I can fiddle with the values below it to get a different color like the image above but I don't know how I would make it read from the pallete for a third value instead of forcing white or whatever color I've forced it to, and I don't see anywhere in this area that black is defined its just $7fff white that is defined twice with some operations done to it. and I can't tell where it loads the value from the actual palletes for col1 and col2 but thats because I havent put in the effort to fully understand assembly but I'm assuming they are stored in [rSVBK] because it copies from it right at the beginning and copies to it before the end of the loop
Offline
The "RGB r, g, b" macro that you use to define colors is just for convenience. The three color channels use five bits each—%rrrrr, %ggggg, and %bbbbb—and they get stored as two bytes: %0bbbbbgg %gggrrrrr.
Say that you have the color RGB 12, 25, 01.
12 decimal = %01100 binary, 25 = %11001, and 01 = %00001.
So that's %0000111 %00101100 , or in hexadecimal, $07 $2C.
And in fact that's what VBA's palette viewer says:
Now you can tell what $7fff is. In binary it's %01111111 %1111111, which is equivalent to RGB 31, 31, 31—that's white.
If you see "$7fff / $100" or "$7fff % $100", that's just getting the individual bytes $7f and $ff out of that two-byte value.
My projects on GitHub:
• Polished Map 4.7.1 or 2.7.1++
• Tilemap Studio 4.0.1
• Pokémon Polished Crystal 2.2.0 or 3.0.0 beta
• Pokémon Red★/Blue★: Space World Edition 2020-11-01
Offline
Pages: 1