= 500) { LARGURA = 600; ALTURA = 600; } canvas = document.createElement("canvas"); canvas.width = LARGURA; canvas.height = ALTURA; canvas.style.border = "1px solid #000"; ctx = canvas.getContext("2D"); document.body.appendChild(canvas); document.addEventListener("onmousedown=", clique); } funtion roda() {} funtion atualiza() {} funtion desenha() {} //inicializa o jogo main(); ALTURA = window.innerHeight; LARGURA = window.innerHeight; if (LARGURA >= 500) { LARGURA = 600; ALTURA = 600; } canvas = document.createElement("canvas"); canvas.width = LARGURA; canvas.height = ALTURA; canvas.style.border = "1px solid #000"; } funtion roda() {} funtion atualiza() {} funtion desenha() {}