10-04-2022, 02:51 AM
(10-03-2022, 10:49 AM)NeoGeoFreak2004 Wrote:(10-02-2022, 01:29 AM)Flavor Wrote:(10-01-2022, 11:34 AM)NeoGeoFreak2004 Wrote: here is the output of the command for the program:bitmap2ngp -i ./1stTest.png P1 68, 68, 68
I think there isn't anything attached, NeoGeoFreak2004.
Alrighty, here is the sprite that was converted to a .c file and made via bitmap2ngp.
You're file is full of 0x0000 meaning that you did not give the correct rgb values to bitmap2ngp.
Attached, you'll find a sample with a single 8x8 sprite.
I generated the b2ngp.c file with this command line:
bitmap2ngp d:\dev\ngpcdev\src\sample\sprite.png P1 237,28,36 255,255,255
because the image contains a red circle (color 237,28,36) filled by white (255,255,255)
you can have up to 3 colors but set the corresponding values in the command line!
btw, bitmap2ngp did not generate a valid array for my png, I had to comment some lines (see b2ngp.c), but yours seems correct.
Sprites are only 8x8 on ngpc, if you want bigger one, you'll have to display it by yourself (16x16 -> 4 sprites 8x8)
Thor