Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to convert sprites and add them in my simple game?
#1
hey guys so anyways i am working on a basic game for the neo-geo pocket color, and i want to convert sprites for the color (not monochrome neo geo pocket.) but is there any programs on how to do that? i know how to create sprites, but how do i convert them into c code?
Reply
#2
https://forum.freeplaytech.com/showthread.php?tid=5403
Reply
#3
alrighty, i just converted a sprite with the NGPC-Image Processer. but how do I include it in my c code? plus how do i display multiple sprites at once?
Reply
#4
(08-08-2023, 11:34 AM)NeoGeoFreak2004 Wrote: alrighty, i just converted a sprite with the NGPC-Image Processer. but how do I include it in my c code? plus how do i display multiple sprites at once?

You can take some time to read chris ahchay's dev blog: https://ahchayblog.wordpress.com/ngpc-development/

Learn a bit of C, like how to use #include Smile and don't hesitate to copy/paste code from others.

multiple sprites = multiple calls to SetSprite with different parameters.
Reply
#5
Is this your code ?
https://github.com/NeoGeoFreak2004/NGPC-...spritetest
Reply
#6
yes that is my code, i uploaded it to github as a thank you present to this community, also thanks for the advice, i will read tutorials on c and i will try to copy others code. and if i have any errors ill post them here.
Reply
#7
so anyways, i have a piece of code that will compile and run but it gives me a warning when compiling, the warning says: THC1-Warning-578: Illegal function call 'SetSprite', too many actual parameters
IDK What that means so can you help me please.
Reply
#8
SetSprite has 6 parameters, this warning occurs when you tried to call it with 7 or more.
Reply
#9
thanks for the suggestion but when I ran the sprite test program that i compiled, the sprite was tiny, so i want it like say 8x8 sprites so how do i make it bigger?
Reply
#10
ngpc sprites are 8x8, for bigger display, use several sprites. for example 4 for 16x16. "Chaining" parameter is'used to link sprites together.
see end of blog post : https://ahchayblog.wordpress.com/2018/03...-it-moves/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)