render() {
        ctx.drawImage(Resources.get(this.sprite), this.x, this.y);
        if (this.victory === true) {
            ctx.font = '72px Georgia';
            ctx.fillText('You won!', 100, 280);
            ctx.font = '24px Georgia';
            ctx.fillText('Hit a bug to play again!', 120, 320);
        }
    }
/**
     * @description Draw the player on the screen.
     * When the game is won, print the victory message to the screen.
     */
@description Draw the player on the screen.
When the game is won, print the victory message to the screen.
@description Draw the player on the screen . When the game is won print the victory message to the screen .
render() {
        ctx.drawImage(Resources.get(this.sprite), this.x, this.y);
        if (this.victory === true) {
            ctx.font = '72px Georgia';
            ctx.fillText('You won!', 100, 280);
            ctx.font = '24px Georgia';
            ctx.fillText('Hit a bug to play again!', 120, 320);
        }
    }
render ( ) { ctx . drawImage ( Resources . get ( this . sprite ) , this . x , this . y ) ; if ( this . victory === true ) { ctx . font = '72px Georgia' ; ctx . fillText ( 'You won!' , 100 , 280 ) ; ctx . font = '24px Georgia' ; ctx . fillText ( 'Hit a bug to play again!' , 120 , 320 ) ; } }
@description Draw the player on the screen.
@description Draw the player on the screen .