quando tento movimentar minha raquete para baixo aparece que a função keyIsDown não está definida
o código está assim:
function movimentaMinhaRaquete() {
if (keyIsDown(UP_ARROW)) {
yRaquete -= 10;
}
}
if (keyIsDown(DOWN_ARROW)) {
yRaquete += 10;
}
https://editor.p5js.org/vhcurydearaujo/sketches/iWyCN72JL
[sketch.js, line 55] "keyIsDown" is not defined in the current scope. If you have defined it in your code, you should check its scope, spelling, and letter-casing (JavaScript is case-sensitive).
+ More info: https://p5js.org/examples/data-variable-scope.html
Did you just try to use p5.js's keyIsDown() function? If so, you may want to move it into your sketch's setup() function.
+ More info: https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup
aparece este erro quando tento movimentar
https://editor.p5js.org/vhcurydearaujo/sketches/iWyCN72JL
o código do jogo