src/character.js
// draw method takes context as a parameter and draws the object to the canvas
draw method takes context as a parameter and draws the object to the canvas
draw method takes context as a parameter and draws the object to the canvas
draw(ctx) {
        ctx.fillStyle = "blue";
        ctx.fillRect(this.position.x, this.position.y, this.width, this.height);
    }
draw ( ctx ) { ctx . fillStyle = "blue" ; ctx . fillRect ( this . position . x , this . position . y , this . width , this . height ) ; }
draw method takes context as a parameter and draws the object to the canvas
draw method takes context as a parameter and draws the object to the canvas
// set fillStyle of the object // draw the shape of the character