home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
fgl
/
fglight
/
exbas.arj
/
TEMP
/
15-07.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-01-20
|
573b
|
34 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
CONST Esc = 27
DIM KeyCode AS STRING*1
DIM AuxCode AS STRING*1
OldMode = FGgetmode
FGsetmode FGautomode
RectColor = 0
FGmusicb "O4 L16 CC#DD#EFF#GG#AA#B O+ CC#DD#EFF#GG#AA#B$", -1
WHILE FGplaying
RectColor = (RectColor + 1) AND 15
FGsetcolor RectColor
FGrect 0, FGgetmaxx, 0, FGgetmaxy
FGwaitfor 4
FGintkey KeyCode, AuxCode
IF KeyCode = CHR$(Esc) THEN
FGhush
ELSEIF ASC(KeyCode)+ASC(AuxCode) <> 0 THEN
FGhushnext
END IF
WEND
FGsetmode OldMode
FGreset
END