| delorie.com/archives/browse.cgi | search |
| Message-ID: | <000601be0b21$cb57ae60$a4feffc2@default> |
| From: | "=?iso-8859-1?Q?Lazer_---=A4---?=" <lazer_hassing AT yahoo DOT com> |
| To: | <djgpp AT delorie DOT com> |
| Subject: | loop'ing |
| Date: | Sun, 8 Nov 1998 15:11:15 +0100 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 4.72.2106.4 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.2106.4 |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id JAA00406 |
| Reply-To: | djgpp AT delorie DOT com |
I need a function for looping until 'esc' is press'ed!
my code look like this:
-----------------------------------------------
again:
/* the game code */
if (key[KEY_ESC]) {
return 0;
}
goto again
-----------------------------------------------
is there a better way of doing this?
Lazer
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |