From a54868674706a02239217e75db89c01c01c2be68 Mon Sep 17 00:00:00 2001 From: Alynne Fereira Date: Wed, 12 Oct 2022 20:13:07 -0300 Subject: [PATCH 01/12] adiciona um TODO para o gitday --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e7fe0a2..db9e6a7 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@ document.addEventListener("keydown", keyPush); setInterval(game, 60); // velocidade - const vel = 1; + const vel = 1; // TODO: mudar a velocidade // trajeto da cobrinha; var trail = []; // tamanho da cobra @@ -120,4 +120,4 @@ } - \ No newline at end of file + From 3587342318364e510b475132c294f82ffff4f493 Mon Sep 17 00:00:00 2001 From: gabrielapcustodio <82176005+gabrielapcustodio@users.noreply.github.com> Date: Sat, 15 Oct 2022 15:37:32 -0300 Subject: [PATCH 02/12] Alterando cores do jogo --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index db9e6a7..f80a513 100644 --- a/index.html +++ b/index.html @@ -57,16 +57,16 @@ } // pintando o stage - ctx.fillStyle = "gray"; + ctx.fillStyle = "rgb(209, 218, 226)"; ctx.fillRect(0, 0, stage.width, stage.height); - // pintando a maçã - ctx.fillStyle = "red"; + // pintando a fruta + ctx.fillStyle = "rgb(190, 47, 226)"; ctx.fillRect(ax*lp, ay*lp, lp, lp); // pintando a cobra - ctx.fillStyle = "green"; + ctx.fillStyle = "rgb(76, 241, 126)"; // verificações for(var i = 0; i < trail.length; i++){ // pintando o rastro na posicao i From aef74dff23d5791cc33966bd5370ec718f0c883b Mon Sep 17 00:00:00 2001 From: gabrielapcustodio <82176005+gabrielapcustodio@users.noreply.github.com> Date: Sat, 29 Oct 2022 12:17:27 -0300 Subject: [PATCH 03/12] Alterando velocidade para 0.9 --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index f80a513..6d3b4ed 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@ document.addEventListener("keydown", keyPush); setInterval(game, 60); // velocidade - const vel = 1; // TODO: mudar a velocidade + const vel = 0.9; // TODO: mudar a velocidade // trajeto da cobrinha; var trail = []; // tamanho da cobra From 30d200c2dafa91fea8719669033cb3d2fb56c3d7 Mon Sep 17 00:00:00 2001 From: gabrielapcustodio <82176005+gabrielapcustodio@users.noreply.github.com> Date: Mon, 31 Oct 2022 11:33:22 -0300 Subject: [PATCH 04/12] Adicionando styles.css e placar --- index.html | 15 ++++++++++++++- styles.css | 14 ++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 styles.css diff --git a/index.html b/index.html index 6d3b4ed..c66b968 100644 --- a/index.html +++ b/index.html @@ -2,14 +2,23 @@ SNAKE! + +
+

PONTUAÇÃO +

+

+