public static void Initialize() { leftBound = Config.MapGeneration["leftBound"].IntValue; rightBound = Config.MapGeneration["rightBound"].IntValue; assets = new Dictionary <string, Texture2D>(); player = new Player(); WaveManager.Init(); MakeRectanglesForButtons(); playButton = new Button(buttonRectangles["play"], "Play"); pauseButton = new Button(buttonRectangles["pause"], "Pause"); exitButton = new Button(buttonRectangles["exit"], "Exit"); menuButton = new Button(buttonRectangles["menu"], "MainMenu"); resumeButton = new Button(buttonRectangles["resume"], "Resume"); backButton = new Button(buttonRectangles["back"], "Back"); optionsButton = new Button(buttonRectangles["options"], "Options"); replayButton = new Button(buttonRectangles["play"], "Replay"); reloadConfigButton = new Button(buttonRectangles["reload"], "Reload"); resolutionButtons = new Dictionary <string, Button>() { { "fullscreen", new Button(new Rectangle(100, height / 2 - 100, 100, 50), "FullScreen") }, { "1920x1080", new Button(new Rectangle(100, height / 2 - 50, 100, 50), "1920x1080") }, { "1600x900", new Button(new Rectangle(100, height / 2, 100, 50), "1600x900") }, { "1280x720", new Button(new Rectangle(100, height / 2 + 50, 100, 50), "1280x720") } }; resolutions = new Dictionary <string, Point>() { { "1920x1080", new Point(1920, 1080) }, { "1600x900", new Point(1600, 900) }, { "1280x720", new Point(1280, 720) } }; platforms = GenerateRandomMap(); DropManager.Initialize(); Game1.camera.Zoom = Helper.MapValue(width, 1280, 1920, 0.9f, 1.2f); }
private static void Reset() { platforms = GenerateRandomMap(); DropManager.Initialize(); SetTextures(); player.Reset(); WaveManager.Init(); }