delorie.com/archives/browse.cgi | search |
From: | eglebbk AT dds DOT nl (Evert Glebbeek) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Game |
Date: | Sat, 29 Jul 2000 23:06:35 GMT |
Organization: | Physics student, University of Amsterdam |
Lines: | 36 |
Distribution: | world |
Message-ID: | <39821cd2.27501762@news.wins.uva.nl> |
References: | <000b01bff895$2a351280$387a5a8f AT dynabook> |
NNTP-Posting-Host: | stol-117-165.uva.studentennet.nl |
X-Trace: | info.wins.uva.nl 964911878 2794 145.98.117.165 (29 Jul 2000 23:04:38 GMT) |
X-Complaints-To: | usenet AT science DOT uva DOT nl |
NNTP-Posting-Date: | Sat, 29 Jul 2000 23:04:38 +0000 (UTC) |
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 |
Newsgroup: comp.os.msdos.djgpp From: "Rogerio Mazakina" <dway AT designer DOT mailbr DOT com DOT br> On Fri, 28 Jul 2000 22:10:11 +0900 >hello. > >Im building a game with allegro/djgpp > >i have 2 functions, but my program is slow to get the keys >(up, left, right and left) > [snip] > >but in my game, if i press any arrow key, the play_sample is called but the >cursor is not >moved. I *think* this may becaused by the fact that you set some variables to 1 when a key is pressed but don't make it something else (eg 0) when the key isn't pressed. In effect, the values of your variables are undefined. As a rule of dumb: *always* set your variables to a known value at the start of a function or loop so that you know what value they should have. > >someone can to tell me what i need to change. >or send me an example >maybe is because i use 24bit color and 640x480 resolution Nah. Works fine for me, although screen updates are notably slower than in lower resolutions. > >obs: My english is not good... :-( Good enough anyway :-) HTH, Evert Glebbeek
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |