doomhack / GBADoom

A port of prBoom to the Nintendo GBA.
214 stars 27 forks source link

Question about gfx stbar #34

Closed RetroGamer02 closed 2 years ago

RetroGamer02 commented 2 years ago

Hi could you tell me how I would go about editing the graphic it seems to be in an unusual format. I would like to change it to better fit FreeDoom.

Kippykip commented 2 years ago

I believe it's just raw pixel data in source\gfx\stbar.h Each number represents an index in the PLAYPAL palette from left to right.

The way I quickly converted the Doom 2 Retail hud over, was because it was basically the same format as my .D2I files made for the GBA Doom 2 Retail modding tools. Which is also basically the same format as doom flats but they're not restricted to 64x64. image_2022-08-28_115657238

Then I wrote a quick and dirty script where it would read the raw bytes in the .D2I file and output the equivalent number and a comma into a text file. (So $FF would become 255, etc)

RetroGamer02 commented 2 years ago

I will see if I can get this all figured out. My programming skills are quite rusty.