EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::General Discussion (https://www.eqemulator.org/forums/forumdisplay.php?f=613)
-   -   Need some QBASIC help... (https://www.eqemulator.org/forums/showthread.php?t=14001)

ryder911 05-27-2004 12:57 PM

Need some QBASIC help...
 
Sorry If this is the wrong forum.. please move if it is

Ok, I am in a computer science class, In the beginning of the year we made a maze. We just got an assignment now, were we have to make a marble move the the maze. It is for extra credit. I want to do somethign different then that. I want to make the marble move by using the arrow keys. I have an idea on how to do it, but Im not sure what ACSII ( i think thats what it would be ) character code, represents a up / down, left / right arrow. Please any help withthis would be appreciated!

rhaze 05-27-2004 01:19 PM

Re: Need some QBASIC help...
 
Quote:

Originally Posted by ryder911
Sorry If this is the wrong forum.. please move if it is

Ok, I am in a computer science class, In the beginning of the year we made a maze. We just got an assignment now, were we have to make a marble move the the maze. It is for extra credit. I want to do somethign different then that. I want to make the marble move by using the arrow keys. I have an idea on how to do it, but Im not sure what ACSII ( i think thats what it would be ) character code, represents a up / down, left / right arrow. Please any help withthis would be appreciated!

The easiest thing to do is write a program to capture the scan codes from the keyboard. Then set those to the default and reuse that code to make them user-definable from an options menu within the program (allowing people to rebind them to WASD if the want, etc).

I did a similar program in high school, tron/snake-style game in QBasic and that's what I did to handle the key bindings.

m0oni9 05-28-2004 05:08 AM

You're doing QBASIC in a CS class?

Virus11 05-28-2004 06:32 AM

I did QBASIC in 7th grade computer finance class.

ryder911 05-31-2004 07:34 AM

yes, lol hahah im a soph. and in computer science one u do QBASIC, and CS II you do VB.. My school is ghetto lol


All times are GMT -4. The time now is 02:32 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.