DanielGalrito

Space Simulation Button (The Space Toy)

Aug 18th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. --[[
  2. THE SPACE TOY!!!
  3. Based on: Spacewars 1.0.0! Simlulate space in space.
  4. Script Version: beta v0.2
  5. ####################
  6. CHANGES:
  7. -- Added fighter lvl 2 (void ray help!)
  8. -- Added bomber lvl 2 (chemical weapon)
  9. -- Added kamikaze ship (experienced kamikaze)
  10. -- Added deserted planet
  11. -- No more changing settings! Now gravity and air sim are always off, and edge is always in loop mode!
  12. -- Technology!
  13. ]]--
  14.  
  15. local function settings(mousex, mousey, button, event)
  16. tpt.drawrect(613, 97, 14, 14, 204, 204, 204)
  17. tpt.fillrect(613, 97, 14, 14, 0, 0, 0, 255)
  18. tpt.drawtext(618, 101, "S", 255, 255, 255, 255)
  19.  
  20. if tpt.mousex >= 613 and tpt.mousey >= 97 and tpt.mousex <= 627 and tpt.mousey <= 111 then
  21. tpt.drawtext(495, 101, "Space Simulation", 255, 255, 255, 255)
  22. tpt.drawrect(613, 97, 14, 14, 255, 255, 255)
  23. end
  24.  
  25. if tpt.mousex >= 613 and tpt.mousey >= 97 and tpt.mousex <= 627 and tpt.mousey <= 111 then
  26. if event == 1 then
  27. sim.gravityMode(1);
  28. sim.airMode(3);
  29. sim.edgeMode(2)
  30. end
  31. end
  32. end
  33. tpt.register_mouseclick(settings)
  34. tpt.register_step(settings)
Add Comment
Please, Sign In to add comment