Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- let r = 80;
- me.setMoveVector(-1, 1, Math.sign( me.y - r));
- }
- {
- let dx =ball.x -me.x;
- let dy = ball.y-me.y;
- me.setMoveVector(4,dx,dy);
- }
- {
- let dx =ball.x -me.x;
- let dy = ball.y-me.y;
- me.setMoveVector(4,dx,dy);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement