home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
fgl
/
fglight
/
exbas.arj
/
TEMP
/
11-03.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-01-20
|
780b
|
45 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
SetMemStatus& = SETMEM(-1*(64000+16))
NewMode = FGbestmode(320,200,2)
IF NewMode < 0 OR NewMode = 12 THEN
PRINT "This program requires a 320 x 200 color graphics mode."
STOP
END IF
OldMode = FGgetmode
FGsetmode NewMode
FGsetcolor 7
FGrect 0, 319, 0, 199
FGsetcolor 9
FOR Row = 0 TO 24
CharString$ = " This is row" + STR$(Row) + " "
FGlocate Row, 0
FGtext CharString$, 20
FGtext CharString$, 20
NEXT
FGwaitkey
Status = FGallocate(1)
FGsethpage 1
FGsave 96, 223, 88, 111
FGsetcolor 1
FGrect 96, 223, 88, 111
FGsetcolor 15
FGlocate 12, 13
FGtext "Press any key.", 14
FGwaitkey
FGrestore 96, 223, 88, 111
FGwaitkey
Status = FGfreepage(1)
FGsetmode OldMode
FGreset
END