Decent C++ pixel function

Discuss popular GCS tools like ZZT, Megazeux and Adventure Game Studio, as well as programming and other topics related to game design.
Post Reply
User avatar
Dosser
Way too much free time
Way too much free time
Posts: 462
Joined: Sun Jan 02, 2005 2:05 am
Location: BEHIND YOU

Decent C++ pixel function

Post by Dosser »

I've been programming in QBasic for years, and have recently learnt C and C++. I think I am at a sufficient level to make a side-scrolling game (aiming for a gameplay level similar to Donkey Kong 1, but graphics similar to Commander Keen 1), but can't find a good pixel function.

I have screwed around with all sorts of libraries, and pretty much hated every one of them: OpenGL and SDL are driving me nuts. I have also tried VGA, which reminds me why I stopped using QB (BECAUSE MICROSOFT IS EVIL, and is constantly finding new ways to screw over it's old technology: I get all sorts of compiler errors when using anything but GCC, and it is hard to find help when a VGA program screws up).


Does anyone know of a decent way to plot graphics quickly? I don't mind about resolution as I always wanted the game to be 320x200 anyway. For example, does anyone know how later games plotted pixels (the ones before windows was popular, but after VGA, EGA)?
User avatar
emmzee
Site Admin
Site Admin
Posts: 2458
Joined: Sat Sep 14, 2002 2:25 pm
Location: Ontario, Canada

Post by emmzee »

I am by no means a C programmer (I did just enough to get through my uni courses) but I think that a lot of older DOS games use/used the Allegro library ... like for example I think Mike Wiering probably used Allegro for his games:

http://www.wieringsoftware.nl

Apparently the official Allegro page is here:

http://www.talula.demon.co.uk/allegro/

One good thing about using Allegro is that there's tons of tutorials nstuff written about it ('cuz its so old). I've never used it personally so I don't know how good it is ... my C programs usually just segfaulted into obilivion whenever they actually compiled ... I prefer <a href="http://www.digitalmzx.net">Megazeux</a> instead :D
Owner / Webmaster of DOSGames.com for over 20 years

Download my free ebook: The Historical Reliability of the New Testament
User avatar
Dosser
Way too much free time
Way too much free time
Posts: 462
Joined: Sun Jan 02, 2005 2:05 am
Location: BEHIND YOU

Post by Dosser »

Thanks, I have downloaded allegro and found it is GREAT!!

I have a prototype of my game working (it's just a screen of tiles and a character bouncing around them, but it does, more or less work).

So again, thanks for your help.
Guest

Re: Decent C++ pixel function

Post by Guest »

Check out this site - really very useful for new comers

http://www3.telus.net/alexander_russell ... uction.htm

Alex Russell's Dos Game Programming in C for Beginners
A Tutorial


T. P. Pramod Kumar
INDIA
User avatar
Dosser
Way too much free time
Way too much free time
Posts: 462
Joined: Sun Jan 02, 2005 2:05 am
Location: BEHIND YOU

Post by Dosser »

No, that tutorial is for VGA graphics: and like I said VGA is hard to use and relaitvely pointless nowadays :D


Using Allegro, I have finished the game engine and the graphics. I also have a level selection map. The only thing left to do is make the actual levels. At the moment I am working on a map editor to make this process easier.

I can't wait 'til it's over and I can release it over the net: it should be a great game :D
Post Reply