src/games/coronaGoGame/coronaGo/coronaGo.js
/**
     * this method will be called to update the position of all objects if window is resized
     */
this method will be called to update the position of all objects if window is resized
this method will be called to update the position of all objects if window is resized
updateObjectDimensions(){
     this.canvas.height = window.innerHeight;
     this.canvas.width = window.innerWidth;
     this.bulletArray.canvasHeight = this.canvas.height
     this.bulletArray.canvasWidth = this.canvas.width
     this.space.height = this.canvas.height
     this.space.width = this.canvas.width;
     this.earth.x = this.canvas.width/2-this.earth.width
     this.earth.y = this.canvas.height/2-this.earth.height
    }
updateObjectDimensions ( ) { this . canvas . height = window . innerHeight ; this . canvas . width = window . innerWidth ; this . bulletArray . canvasHeight = this . canvas . height this . bulletArray . canvasWidth = this . canvas . width this . space . height = this . canvas . height this . space . width = this . canvas . width ; this . earth . x = this . canvas . width / 2 - this . earth . width this . earth . y = this . canvas . height / 2 - this . earth . height }
this method will be called to update the position of all objects if window is resized
this method will be called to update the position of all objects if window is resized
//1. update canvas //2. bullet array //3. space //4. earth