A89: Re: Sprite Program


[Prev][Next][Index][Thread]

A89: Re: Sprite Program




> What program do all of you, who program in C, use to convert your sprites
> into C format? I have tried several programs off of Ticalcs web site but I
> am obviously using the wrong ones.

You can use the ones that output .asm files, but it's a little tricky
integrating that data into a C program. IIRC there are also some programs that
output C code directly, but it's been a while since I looked.

My personal preference is to write a C program that simply converts an image to
C data, usually with a fixed sprite format, because you can then use raw images
and not have to process .bmp:s or whatever. An easier way would probably be to
make it in Java since it has direct support for reading images, and file
management is a breeze.

I have one such program available (be warned; it's rather ugly code) and the
(Linux 5x86) binary if anyone wants it - should be easy to modify for different
sprite formats.

 / Niklas Brunlid
Check out Prosit for the TI-89 / TI-92+ at http://prosit.ticalc.org
Random PQF Quote follows:

"There must be a hundred silver dollars in here," moaned Boggis, waving a
purse. "I mean, that's not my league. That's not my class. I can't handle
that sort of money. You've got to be in the Guild of Lawyers or something
to steal that much."
       -- (Terry Pratchett, Wyrd Sisters)





References: