home *** CD-ROM | disk | FTP | other *** search
/ Game Programming for Teens / GameProgrammingForTeens.iso / Source / chapter06 / demo06-06.bb < prev    next >
Encoding:
Text File  |  2003-04-06  |  609 b   |  28 lines

  1. ;demo06-06.bb - A slideshow of images
  2. ;Set up graphics
  3. Graphics 800,600
  4.  
  5. ;Set up counter for loading images
  6. snnum = 1
  7.  
  8.  
  9. ;Grab images from center
  10. AutoMidHandle True
  11.  
  12.  
  13. ;As long as another image exists, load it and display it
  14. ;Since we are loading it to the front buffer, it will be automatically displayed
  15. While (LoadBuffer(FrontBuffer(),"screenshot" + snnum + ".bmp") <>0)
  16.     
  17.     ;Write out the name of it
  18.     Text 400,300,"Image screenshot" + snnum + ".bmp"
  19.     
  20.     ;Move to next image
  21.     snnum = snnum + 1
  22.     WaitKey
  23. Wend
  24.  
  25. Cls
  26. Text 400,300,"Slideshow has ended. Press any key to exit."
  27. WaitKey
  28. End