Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
profedvaldo authored Aug 1, 2024
1 parent 91a5966 commit 8bba06e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pingpong.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ let tamBolinha = 25;
let xvelocidadeBolinha = 6;
let yvelocidadeBolinha = 6;

//configura raquete
let xRaquete = 5;
let yRaquete = 150;
let larguraRaquete = 10;
let alturaRaquete = 90;

function setup(){
//aqui vou criar minha "mesa"
createCanvas(600,400);
Expand Down Expand Up @@ -43,4 +49,8 @@ function Borda(){
if (yBolinha > height || yBolinha < 0){
yvelocidadeBolinha *= -1;
}
}
}
function criaRaquete(xRaquete, yRaquete, larguraRaquete, alturaRaquete){
fill("blue");
rect(xRaquete, yRaquete, larguraRaquete, alturaRaquete);
}.

0 comments on commit 8bba06e

Please sign in to comment.