handleInput(keyPress){
        switch (keyPress) {
            case "left":
                this.x -= 101;
                break;
            case'right':
                this.x += 101;
                break;
            case 'up':
                this.y -= 83;
                break;
            case 'down':
                this.y += 83;
                break;
        };
    }
// Move player using the arrow keys
Move player using the arrow keys
Move player using the arrow keys
handleInput(keyPress){
        switch (keyPress) {
            case "left":
                this.x -= 101;
                break;
            case'right':
                this.x += 101;
                break;
            case 'up':
                this.y -= 83;
                break;
            case 'down':
                this.y += 83;
                break;
        };
    }
handleInput ( keyPress ) { switch ( keyPress ) { case "left" : this . x -= 101 ; break ; case 'right' : this . x += 101 ; break ; case 'up' : this . y -= 83 ; break ; case 'down' : this . y += 83 ; break ; } ; }
Move player using the arrow keys
Move player using the arrow keys