home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / exbas.arj / TEMP / 10-12.BAS < prev    next >
BASIC Source File  |  1995-01-20  |  519b  |  33 lines

  1. REM $INCLUDE: 'fastgraf.bi'
  2.  
  3. DEFINT A-Z
  4.  
  5. DIM Bitmap AS STRING*256
  6.  
  7. NewMode = FGbestmode(320,200,1)
  8. IF NewMode < 0 OR NewMode = 12 THEN
  9.    PRINT "This program requires a 320 x 200 color graphics mode."
  10.    STOP
  11. END IF
  12.  
  13. OldMode = FGgetmode
  14. FGsetmode NewMode
  15. MapWidth = FGimagesiz(32,1)
  16.  
  17. FGsetcolor 7
  18. FGrect 0, 31, 0, 7
  19. FGsetcolor 9
  20. FGtext "text", 4
  21. FGwaitkey
  22.  
  23. FGmove 0, 7
  24. FGgetimage Bitmap, MapWidth, 8
  25. FGmove 4, 15
  26. FGdrwimage Bitmap, MapWidth, 8
  27. FGwaitkey
  28.  
  29. FGsetmode OldMode
  30. FGreset
  31.  
  32. END
  33.