Advertisement
Audiation

Line Party

Aug 1st, 2013
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ' Touch the screen to end the program.
  2.  
  3. Speed = 15
  4. Size = 10
  5. RETINA on
  6.  
  7. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  8. ' Line Party ' by TheBaykun.
  9. '           July 21, 2013              
  10. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  11.  
  12. bclra=RND*255
  13. bclrb=RND*255
  14. bclrc=RND*255
  15. BCOLOR bclra,bclrb,bclrc
  16. WHILE Touch=0
  17.     clra=RND*255
  18.     clrb=RND*255
  19.     clrc=RND*255
  20.     COLOR clra,clrb,clrc
  21.     lineax=RND*ScreenWidth
  22.     lineay=RND*ScreenHeight 'Starting Point
  23.     linebx=5+RND*speed
  24.     lineby=5+RND*speed 'Line speed
  25.     la=RND
  26.     lb=RND
  27.     IF la<0.5 THEN
  28.         lineby=-lineby
  29.     ENDIF
  30.     IF lb<0.5 THEN
  31.         linebx=-linebx
  32.     ENDIF
  33.     linecx=lineax 'Current location
  34.     linecy=lineay
  35.     lined=1+(RND*(size-1))
  36.     WHILE linecx>0-(lined/2) AND linecx<ScreenWidth+(lined/2) AND linecy>0-(lined/2) AND linecy<ScreenHeight+(lined/2) AND Touch=0
  37.         linecx=linecx+linebx
  38.         linecy=linecy+lineby
  39.         LINE lineax,lineay,linecx,linecy,lined
  40.         SLEEP 0.05
  41.     WEND
  42. WEND
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement