Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // room script file
- function room_Load()
- {
- Rope.SetStartPoint(20.0, 100.0);
- Rope.SetEndPoint(100.0, 60.0);
- Rope.SetLength(150.0);
- Rope.SetDamping(0.01);
- Rope.SetGravity(200.0);
- Rope.Create(System.ViewportWidth, System.ViewportHeight);
- obj_rope.Graphic = Rope.GetGraphic();
- }
- function room_RepExec()
- {
- Rope.SetStartPoint(IntToFloat(mouse.x), IntToFloat(mouse.y));
- Rope.SetEndPoint(IntToFloat(player.x), IntToFloat(player.y - 20));
- Rope.Update();
- Rope.Render();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement