Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sync on
  2. sync rate 70
  3. x#=300
  4. y#=300
  5. a=0
  6. v#=1
  7. do
  8. `cls
  9.  
  10. `print a mod 360
  11.  
  12. dot x#,y#
  13. `rysuj wektorki
  14. line x#,y#,x#-v#*cos(a),y#-v#*sin(a)
  15. `line x#,y#,x#,y#+50*sin(a)
  16. `line x#,y#,x#+50*cos(a),y#
  17. `przesowaj
  18. x#=x#+v#*cos(a)
  19. y#=y#+v#*sin(a)
  20.  
  21. `zmieniaj kont i prendkosc
  22. if rightkey() then a=a+5
  23. if leftkey() then a=a-5
  24. if upkey() then v#=v#+.1
  25. if downkey() then v#=v#-.1
  26. `zderzenia
  27. if x#>640 then a=180-a
  28. if x#<0 then a=180-a
  29. if y#>480 then a=360-a
  30. if y#<0 then a=360-a
  31.  
  32. sync
  33. loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement