GP32 Using bitmap graphics in games?


Recipio

Still Fresh
Joined
Aug 19, 2003
Messages
31
Age
36
Location
Sweden
Website
Visit site
Hi.

I was wondering what the best way of using bitmap graphics in games are. It would be great if anyone could point me to a good tutorial for this, or maybe try to explain here. :)
 
Well, you could save the image as a .gpg file using a converter and then use SDK functions to load it. Similarly you could put the .bmp, .png or whatever files into your GP32 and use some libraries to load it.

I am unfamiliar with both of these - I prefer to convert the sprites to C source code which basically converts each sprite to an array. You can then plug this array directly into a GpBitBlt or GpTransBlt call.

Luckily a tutorial exists, written by yours truly @ http://www.thaworx.co.uk/ninja/tut3.htm ... hope that helps :)

- Rico
 
There are many easy file formats to read.
I'm mostly using TGA or PCX, information can be found at
www.wotsit.org

---
mithris
 
Thanks, but i didn't understand how to import .bmp files and i didn't get GP32Converter to work, it says "The language DLL 'VB6FR.DLL' could not be found." i looked it up, and downloaded the .dll file but i don't know where to put it.
 
Rico posted on Aug 19 2003 said:
I prefer to convert the sprites to C source code which basically converts each sprite to an array. You can then plug this array directly into a GpBitBlt or GpTransBlt call.
That seems not to be the right way, it makes your source too big! And it's too much work to change sprites etc.
 
Last edited by a moderator:
Back
Top