Guest User

Untitled

a guest
Apr 18th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function CannonLoop(){
  2.     context.translate(playerPos.x, playerPos.y);
  3.     context.rotate();
  4.     context.translate(-playerPos.x, -playerPos.y);
  5.     context.beginPath();
  6.     context.moveTo(playerPos.x, playerPos.y);
  7.     context.lineTo(playerPos.x + 15, playerPos.y - 100);
  8.     context.lineTo(playerPos.x - 15, playerPos.y - 100);
  9.     context.lineTo(playerPos.x, playerPos.y)
  10.     context.lineWidth = 3;
  11.     context.stroke();
  12.     context.endPath();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment