()
| 103 | ctx.closePath(); |
| 104 | } |
| 105 | function drawPaddle() { |
| 106 | ctx.beginPath(); |
| 107 | ctx.rect(paddleX, canvas.height-paddleHeight, paddleWidth, paddleHeight); |
| 108 | ctx.fillStyle = grd; |
| 109 | ctx.fill(); |
| 110 | ctx.closePath(); |
| 111 | } |
| 112 | function drawBricks() { |
| 113 | for(var c=0; c<brickColumnCount; c++) { |
| 114 | for(var r=0; r<brickRowCount; r++) { |