![]() |
|
How to convert sprites and add them in my simple game? - Printable Version +- Freeplaytech Forum (https://forum.freeplaytech.com) +-- Forum: Neo Geo Pocket (https://forum.freeplaytech.com/forumdisplay.php?fid=1) +--- Forum: Software Development (https://forum.freeplaytech.com/forumdisplay.php?fid=4) +--- Thread: How to convert sprites and add them in my simple game? (/showthread.php?tid=5442) |
How to convert sprites and add them in my simple game? - NeoGeoFreak2004 - 08-07-2023 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? RE: How to convert sprites and add them in my simple game? - sodthor - 08-07-2023 https://forum.freeplaytech.com/showthread.php?tid=5403 RE: How to convert sprites and add them in my simple game? - NeoGeoFreak2004 - 08-08-2023 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? RE: How to convert sprites and add them in my simple game? - sodthor - 08-08-2023 (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 and don't hesitate to copy/paste code from others.multiple sprites = multiple calls to SetSprite with different parameters. RE: How to convert sprites and add them in my simple game? - sodthor - 08-08-2023 Is this your code ? https://github.com/NeoGeoFreak2004/NGPC-Code/tree/main/spritetest RE: How to convert sprites and add them in my simple game? - NeoGeoFreak2004 - 08-08-2023 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. RE: How to convert sprites and add them in my simple game? - NeoGeoFreak2004 - 08-08-2023 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. RE: How to convert sprites and add them in my simple game? - sodthor - 08-09-2023 SetSprite has 6 parameters, this warning occurs when you tried to call it with 7 or more. RE: How to convert sprites and add them in my simple game? - NeoGeoFreak2004 - 08-09-2023 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? RE: How to convert sprites and add them in my simple game? - sodthor - 08-09-2023 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/05/and-so-it-moves/ |