home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
fgl
/
fglight
/
exbas.arj
/
TEMP
/
09-11.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-01-20
|
729b
|
37 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
DATA &h0000,&h00FF,&h00FF,&h00FF,&h02BB,&h0000,&h0222,&h0255
DATA &h00FF,&h00FF,&h00FF,&h0055,&h00AA,&h00AA,&h00FF,&h0277
NewMode = FGbestmode(320,200,1)
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
IF NewMode = 4 THEN
FGpalette 0, 0
FOR ColorIndex = 0 TO 15
READ CGApattern
FGpattern ColorIndex, CGApattern
NEXT
ELSEIF NewMode = 9 OR NewMode = 13 THEN
FGpattern 15, &h04F7
ELSE
FGsetrgb 15, 38, 38, 38
END IF
FGmove 0, 199
Status = FGshowppr("CORAL.PPR"+CHR$(0),320)
FGwaitkey
FGsetmode OldMode
FGreset
END