Can I get some help with Advanced Javascript - Pong Game?
Would it be possible to get some help with this section of the code please? Have tried several things but still stuck with 2 errors. This is what I wrote to controller player 1.
draw = function() {
//Control Player 1
draw = function() {
if (keyIsPressed) {
if (keyCode === 38){
movePlayer1Up();
}
else if (keyCode === 40) {
movePlayer1Down();
Please sign in to leave a comment.