Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1.  
  2. SCREEN 640,480
  3.  
  4. planet = LoadImage("planeetta.png")
  5.  
  6. Repeat
  7. sunx# = MouseX()
  8. suny# = MouseY()
  9.  
  10. For i = 20 To 0 Step -1
  11. c=Min(255,Float(255-i*10)/Max(40,Distance(320,240,sunx,suny))*40)
  12. If i = 0 Then c=255
  13. Color c,c,c
  14. Circle sunx+i*(sunx-320)*.01-25-i*2, suny+i*(suny-240)*.01-25-i*2, 50+i*4
  15. If i<5 Then
  16. c=80+155/4.0*(4-i)
  17. Color c,c,c
  18. r = (87+i)/Max(sqrt(Distance(320,240,sunx,suny)*.015),1)
  19. Circle 320-r+.05*(sunx-320),240-r+.05*(suny-240),2*r
  20. EndIf
  21. Next i
  22. DrawImage planet,320-90,240-90
  23. //Color 0,0,0
  24. //Circle 320-90,240-90,180
  25. DrawScreen
  26. Forever
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement