Game programming

Moderators: None (Apply to moderate this forum)
Number of threads: 2047
Number of posts: 5331

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
Hey Xotor! about the MapMaker/Editor Posted by Jayson on 7 Jul 1999 at 4:07 PM
how would i use RLE-BMPs. what would the code look like(seudo-code)?<br>
and what would be better to use?


Edit Report
Re: Hey Xotor! about the MapMaker/Editor Posted by Xotor on 8 Jul 1999 at 11:34 PM
: how would i use RLE-BMPs. what would the code look like(seudo-code)?<br>
: and what would be better to use?<p>
Well I use the Allegro Library, which has built in sprite blitting and such. I'd just store all the loaded bitmaps into RLE bitmaps within my program and then blit them as sprites (since I'd want to have transparency and omition of "invisible" pixels).<p>
Pretend that this is a small bitmap:<p>
1112224444444422244444443333111111155555<p>
A RLE (Run Length Encoded) Bitmap would compress it this way:<p>
3132843274437155<p>
Where the first number tells how many of the second one to repeat. I'm sure the format is different in real RLE encoded bitmaps but that's how they basically work. It really shrinks most Bitmaps.<p>
I personally like using Allegro (http://www.talula.demon.co.uk/allegro/), which uses DJGPP or Linux GCC or Visual C++. It does RLE blitting (sending to screen) for you. All you do is load the graphics from a file or DAT archive (which you can have them compressed), and then load them as RLE sprites. They blit really fast and since you're dealing with tiles, you don't need any special things like rotation and such, only transparency, and invisible pixels.<p>
I would prescribe using a DAT file system using ordinary BMP files. Then compress the DAT file (with built in compression) to make it small.<p>
Allegro also has a nice (well sort of nice) GUI system included with it, so you can make your own GUI for the program.<p>
-Xotor-


Edit Report
Re: Hey Xotor! about the MapMaker/Editor Posted by Jayson on 9 Jul 1999 at 3:28 PM
: : how would i use RLE-BMPs. what would the code look like(seudo-code)?<br>
: : and what would be better to use?<p>
: Well I use the Allegro Library, which has built in sprite blitting and such. I'd just store all the loaded bitmaps into RLE bitmaps within my program and then blit them as sprites (since I'd want to have transparency and omition of "invisible" pixels).<p>
: Pretend that this is a small bitmap:<p>
: 1112224444444422244444443333111111155555<p>
: A RLE (Run Length Encoded) Bitmap would compress it this way:<p>
: 3132843274437155<p>
: Where the first number tells how many of the second one to repeat. I'm sure the format is different in real RLE encoded bitmaps but that's how they basically work. It really shrinks most Bitmaps.<p>
: I personally like using Allegro (http://www.talula.demon.co.uk/allegro/), which uses DJGPP or Linux GCC or Visual C++. It does RLE blitting (sending to screen) for you. All you do is load the graphics from a file or DAT archive (which you can have them compressed), and then load them as RLE sprites. They blit really fast and since you're dealing with tiles, you don't need any special things like rotation and such, only transparency, and invisible pixels.<p>
: I would prescribe using a DAT file system using ordinary BMP files. Then compress the DAT file (with built in compression) to make it small.<p>
: Allegro also has a nice (well sort of nice) GUI system included with it, so you can make your own GUI for the program.<p>
: -Xotor-<p>
Thanx! very much!





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.