[fpc-pascal]GIF 87a/89a

Balogh, Karoly (Charlie/iNQ) charlie at scenergy.dfmk.hu
Tue Nov 19 15:19:01 CET 2002


On 19-Nov-02, Cabuzel Thierry wrote:

>> Well, someone please tell me then. I haven't developed games much in
>> linux, let alone pascal. What's the best way to do graphics (sprites)
>> for game development? I'm starting small, space invaders clone. But I
>> need some help/ideas of what people generally do.
> Well, for games, prefer a plain bold BMP images. Why? The trick in games
> is to do a mix between space (memory/disk), speed, and simplicity. 

Of course, everyone uses plain raw or BMP images for Putimage and such 
routines. But i see no reason why you couldn't use some compressed image 
format to store pictures on the HDD, and convert to raw chunky or BMP 
format at load-time. 

I've a GIF87a-loader source, based on some old SWAG routines modified by
myself to fit my own needs, and to work under FPC. I never tried these
routines under Linux, but i see no reasons why it shouldn't work, since
it uses standard Pascal I/O routines. Anyway, if you're thinking to support 
only Linux, i think you should use libpng or libgif, or anything like that, 
to load your files, since that's the most elegant way, IMO.

Anyway, if some of you still need my sources (small example included) 
please let me know, and then i'll put together my PC again (i'm on Amiga
now:) tonight, and upload the stuff to somewhere on the net.

.:%[ Cybernetic Hydraulic Android Responsible for ]%:. 
.:%[    Logical Infiltration and Exploration      ]%:.
.:%[         Member of TeamOS/2 Hungary           ]%:.
.:%[     Member of Hungarian Amiga User Group     ]%:.

More information about the fpc-pascal mailing list