Advertisement
eri0w

Untitled

Apr 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. // room script file
  2.  
  3. function room_Load()
  4. {
  5. Rope.SetStartPoint(20.0, 100.0);
  6. Rope.SetEndPoint(100.0, 60.0);
  7. Rope.SetLength(150.0);
  8. Rope.SetDamping(0.01);
  9. Rope.SetGravity(200.0);
  10. Rope.Create(System.ViewportWidth, System.ViewportHeight);
  11. obj_rope.Graphic = Rope.GetGraphic();
  12. }
  13.  
  14. function room_RepExec()
  15. {
  16. Rope.SetStartPoint(IntToFloat(mouse.x), IntToFloat(mouse.y));
  17. Rope.SetEndPoint(IntToFloat(player.x), IntToFloat(player.y - 20));
  18. Rope.Update();
  19. Rope.Render();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement