DOS Games Message Board
DOS Games Discussion
A message board to talk about DOS games, get help, and find old games.
Do NOT post warez or abandonware requests please
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
NEW! DOSGames.com has been massively upgraded to v2.0 with TONS of new features!
Check out the new design and dozens of new features including online play!


Decent C++ pixel function

 
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation
Author Message
Dosser
Way too much free time
Way too much free time


Offline
Joined: 02 Jan 2005
Posts: 462
Location: BEHIND YOU

PostPosted: Sun Jan 02, 2005 8:19 pm     Post subject: Decent C++ pixel function Reply with quote

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)?
Back to top
emmzee
Site Admin
Site Admin


Offline
Joined: 14 Sep 2002
Posts: 2407
Location: Ontario, Canada

PostPosted: Sun Jan 02, 2005 11:28 pm     Post subject: Reply with quote

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 Megazeux instead Shit-Eating Grin
Back to top
Dosser
Way too much free time
Way too much free time


Offline
Joined: 02 Jan 2005
Posts: 462
Location: BEHIND YOU

PostPosted: Fri Jan 14, 2005 8:52 pm     Post subject: Reply with quote

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.
Back to top
Guest







PostPosted: Wed Mar 23, 2005 3:53 am     Post subject: Re: Decent C++ pixel function Reply with quote

Check out this site - really very useful for new comers

http://www3.telus.net/alexander_russell/course/introduction.htm

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


T. P. Pramod Kumar
INDIA
Back to top
Dosser
Way too much free time
Way too much free time


Offline
Joined: 02 Jan 2005
Posts: 462
Location: BEHIND YOU

PostPosted: Wed Mar 23, 2005 4:27 am     Post subject: Reply with quote

No, that tutorial is for VGA graphics: and like I said VGA is hard to use and relaitvely pointless nowadays Shit-Eating Grin


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 Shit-Eating Grin
Back to top
Display posts from previous:   
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group and Ask an Expert
Also powered by Darren and the other admin and mods' hard work! ;)