Mysoft

Untitled

Sep 6th, 2026
54
0
311 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "crt.bi"
  2.  
  3. screenres 640,480,8
  4.  
  5. dim as double dStart = timer
  6. dim as long iScale = 32
  7.  
  8. do
  9.  
  10.   dim as string sGrid = "BH50"
  11.   for Y as long = 0 to 99
  12.     randomize ((Y\2)+33)*timer
  13.     dim as long iR
  14.     for X as long = 0 to 99
  15.       if (X and 1)=0 then iR = cint(rnd)
  16.       if ((X+Y+iR) and 1) then if iR then sGrid += "BDE" else sGrid += "FBU" else sGrid += "BR"    
  17.     next X
  18.     sGrid += "BL100BD"  
  19.   next Y  
  20.  
  21.   draw "S" & iScale
  22.   do
  23.     screenlock : cls
  24.     draw "bm320,240TA" & cint(fmod((timer-dStart)*18,360))
  25.     draw sGrid ': draw "bm321,240" : draw sGrid  
  26.     screenunlock : sleep 5,1
  27.     do
  28.       var sKey = inkey : if len(sKey)=0 then exit do
  29.       dim as long iKey = sKey[0]: if sKey[0]=255 then iKey = -sKey[1]
  30.       select case iKey
  31.       case asc("+"),asc("="): if iScale < 256 then iScale += 1 : draw "S" & iScale
  32.       case asc("-"),asc("_"): if iScale > 2 then iScale -= 1 : draw "S" & iScale      
  33.       case 13 : exit do,do
  34.       case 27 : exit do,do,do
  35.       end select
  36.     loop
  37.   loop
  38. loop
Advertisement
Add Comment
Please, Sign In to add comment