src/games/coronaGoGame/coronaGo/coronaGo.js
/**this function return estimated speed x,y for a bullet */
this function return estimated speed x,y for a bullet
this function return estimated speed x y for a bullet
calculateSpeed(dx, dy, ox, oy) {
        let angle = Math.atan2(dy - oy, dx - ox)
        let sx = Math.cos(angle);
        let sy = Math.sin(angle);
        return { x: sx, y: sy }
    }
calculateSpeed ( dx , dy , ox , oy ) { let angle = Math . atan2 ( dy - oy , dx - ox ) let sx = Math . cos ( angle ) ; let sy = Math . sin ( angle ) ; return { x : sx , y : sy } }
this function return estimated speed x,y for a bullet
this function return estimated speed x y for a bullet