Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'Made for BlitzMax
  2. 'Now open source: http://www.blitzbasic.com/Products/_index_.php
  3. sw = 640
  4. sh = 480
  5.  
  6. 'Square thing
  7. startSize = 40
  8. r=0
  9. t=0
  10.  
  11. Graphics sw,sh
  12.  
  13. While Not KeyHit( KEY_ESCAPE )
  14.     Cls
  15.  
  16.     size = startSize + Sin(t*3)*startSize*0.5
  17.     r:+3
  18.     t:+1
  19.     SetHandle size/2,size/2
  20.     SetTransform r,1,1
  21.  
  22.     SetColor (0,0,0)
  23.     DrawRect (0,0,640,480)
  24.     SetColor (255,255,255)
  25.    
  26.     For x=0 To 12
  27.         For y=0 To 12
  28.             DrawRect (sw*x/12,sh*y/12,size,size)
  29.         Next
  30.     Next
  31.    
  32.     Flip
  33. Wend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement