text: import { getCurrentWindowSize } from './utils';
  import LeaderboardDialog from "./leaderboardDialog";
  import ScoreBoardDialog from "./scoreBoardDialog";
  import AnnulusFilter from './annulusFilter';
  import FramesCalculator from './framesCalculator.js'
  
  const windowSize = getCurrentWindowSize();
  
  export const renderer = new PIXI.WebGLRenderer(
    windowSize.width, windowSize.height, {autoResize: true}
  );
  export const stage = new PIXI.Container();
  
  export const globalState = {
    clientId: null,
    clientIdToName: new Map(),
    nickname: null,
    spaceshipMap: new Map(),
    physicsFrameID: 0,
    projectilesMap: new Map(),
    dialog: null,
    killedBy: null,
    worldSizeFilter: new AnnulusFilter(),
    ping: null,
    framesCalculator: new FramesCalculator(),
    asteroidsMap: new Map(),
    crosshair: null,
    score: null
  };
  
  export var constants = {};
  
  export const leaderboardDialog = new LeaderboardDialog();
  export const scoreBoardDialog = new ScoreBoardDialog();
  