11-20-2003, 08:57 PM
Well, you don't need to split the cases. A raw select case would work and will be faster:
Simpler code. Also if you are an optimization freak it is better to precalculate stuff:
Code:
k$=INKEY$
SELECT CASE k$
CASE "p": ' key p
CASE CHR$(0)+CHR$(75): ' cursor left.
END SELECT
Simpler code. Also if you are an optimization freak it is better to precalculate stuff:
Code:
CursorLeft$=CHR$(0) + CHR$(75)
...
k$=INKEY$
SELECT CASE k$
CASE "p": 'key p
CASE CursorLeft$: 'cursor left
END SELECT
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i