home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / scrnsave / scrsave / scrsave.bas < prev   
Encoding:
BASIC Source File  |  1989-08-17  |  2.1 KB  |  91 lines

  1. ' Screen Saver DA by Derrick A. Hall, for HiSoft Basic
  2. ' Alert source code generated from ALERT MAKER
  3. ' Public Domain release on the 8-17-89 
  4. ' Time 4:00am( yes, I'm a nite walker)
  5. '
  6. rem $option j20
  7. Library "gemacc","gemvdi","xbios"
  8. defint a-z
  9. Const AC_OPEN=40
  10. '
  11. id=peekw(peekl(gb+4)+4)
  12. mpos=fnmenu_register(id,"  Screen Saver ")
  13. '
  14. Dim message(7)
  15. Dim shared junk,junk2,junk3, inv(10),outv(57),i,rgb(16)
  16. DIM SHARED t1$,t2$,t3$,t4$,t5$,junk
  17. '
  18. save_colors
  19. repeat main
  20.     evnt_mesag varptr(message(0))
  21.     '
  22.     If message(0)=AC_OPEN then call do_screen_saver
  23.     '
  24. end repeat main
  25. '
  26. Sub do_screen_saver
  27. '
  28. Let t1$="    Simple Screen Saver       |"
  29. Let t2$="           v1.0               |"
  30. Let t3$="    By Derrick A. Hall        |"
  31. Let t4$="Complied in HiSoft BASIC Pro  |"
  32. Let t5$="⇦⇦⇦⇦⇦⇦⇦⇦⇦⇦⇦⇦⇦⇦⇦⇦⇨⇨⇨⇨⇨⇨⇨⇨⇨⇨⇨⇨|"
  33. junk=FNform_alert(1 ,"[1]["+t1$+t2$+t3$+t4$+t5$+"][ BLANK | INFO |No BLANK]")
  34. '
  35.     If junk=1 Then
  36.         screen_off
  37.         junk=FNform_alert(1,"[0][ Dummy ][ ON ]")
  38.         screen_on
  39.     End If
  40.     If junk=2 Then
  41. Let t1$=" This Screen Saver works best |"
  42. Let t2$="   in COLOR, for the entire   |"
  43. Let t3$="screen will blank out. In MONO|"
  44. Let t4$=" you get an inverted screen.  |"
  45. Let t5$="   Atari OS not me, sorry.    |"
  46. junk=FNform_alert(1 ,"[1]["+t1$+t2$+t3$+t4$+t5$+"][ BLANK | MORE |No BLANK]")
  47. '
  48.     If junk=1 Then
  49.         screen_off
  50.         junk=FNform_alert(1,"[0][ Dummy ][ ON ]")
  51.         screen_on
  52.     End If
  53.     If junk=2 Then
  54. Let t1$="  I dedicated this program to  |"
  55. Let t2$="       Michael McDevitt.       |"
  56. Let t3$="  Will call after the summer.  |"
  57. Let t4$="  I still want that T-shirt.   |"
  58. Let t5$="           hell ya!            |"
  59. junk=FNform_alert(1 ,"[1]["+t1$+t2$+t3$+t4$+t5$+"][ BLANK |La Beija|No BLANK]")
  60.      If junk=1 Then
  61.         screen_off
  62.         junk=FNform_alert(1,"[0][ Dummy ][ ON ]")
  63.         screen_on
  64.     End If
  65.     End If     
  66.     End If
  67. End Sub
  68. '
  69. Sub screen_off
  70. for i=0 to 16
  71.     junk3=FNsetcolor(i,0)   'blank off screen
  72. next i
  73. End Sub
  74. '
  75. SUB screen_on
  76. for i=0 to 16
  77.     junk3=FNsetcolor(i,rgb(i))  'read back stored array
  78. next i
  79. End sub
  80. '
  81. SUB save_colors
  82. for i=0 to 16
  83.     rgb(i)=FNsetcolor(i,-1)  'save colors into array
  84. next i
  85. END sub
  86.  
  87.  
  88.  
  89.         
  90.