Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create Sprites For NGPC?
#14
(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


Attached Files
.zip   sample.zip (Size: 31.44 KB / Downloads: 9)
Reply


Messages In This Thread
RE: How to create Sprites For NGPC? - by sodthor - 03-22-2022, 03:17 AM
RE: How to create Sprites For NGPC? - by KeiDash - 03-24-2022, 04:50 AM
RE: How to create Sprites For NGPC? - by sodthor - 06-16-2022, 09:10 PM
RE: How to create Sprites For NGPC? - by Flavor - 10-01-2022, 02:03 AM
RE: How to create Sprites For NGPC? - by Flavor - 10-01-2022, 05:49 AM
RE: How to create Sprites For NGPC? - by Flavor - 10-02-2022, 01:29 AM
RE: How to create Sprites For NGPC? - by sodthor - 10-04-2022, 02:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)