cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/14/17:14:50

From: visage AT yourmom DOT com (Visage)
Newsgroups: comp.os.msdos.djgpp
Subject: Coding problems from an extreme C newbie...
Date: Sat, 14 Nov 1998 21:56:27 GMT
Organization: Your Mom.Com
Lines: 24
Message-ID: <364dfa95.1416189@news.flash.net>
NNTP-Posting-Host: ip247.toledo.oh.pub-ip.psi.net
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Okay, I'm an extreme newbie when it comes to code (my usual speciality
is graphics), and I'm using DJGPP and Allegro.  Here's my problems...

1. How can I use "readkey()" to check for more than one keypress?
I.e.: If KEY-UP is pressed, the pointer will move up, and if KEY-DOWN
is pressed, it will move down.  Hmm..maybe I've worded this wrong..not
sure.

2. (a general coding question) How can I return back to a specific
point in a function? (without using GOTO of course. :))

and 3. (using Allegro) What's the best way to peoperly remove a sprite
(not a bitmap) when I'm done with it?  Right now, I just call the
original bitmap back from memory before it had any sprites plopped on
it, but that's probably not good.

Now I have a headache. :)

Well, if anyone can help (and I know they can), you can post a
followup here, or e-mail me at "visge AT spamsucksflash DOT net" (just remove
the "spamsucks" and you'll get the proper e-mail address.  Thanks!

- Steve

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019