Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CannonLoop(){
- context.translate(playerPos.x, playerPos.y);
- context.rotate();
- context.translate(-playerPos.x, -playerPos.y);
- context.beginPath();
- context.moveTo(playerPos.x, playerPos.y);
- context.lineTo(playerPos.x + 15, playerPos.y - 100);
- context.lineTo(playerPos.x - 15, playerPos.y - 100);
- context.lineTo(playerPos.x, playerPos.y)
- context.lineWidth = 3;
- context.stroke();
- context.endPath();
- }
Advertisement
Add Comment
Please, Sign In to add comment