/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
public OptionsMenu(Game1 g) { game = g; SizeBoxes = new SetUpBox[12]; for (int x = 0; x < 4; x++) { for (int y = 0; y < 3; y++) { SizeBoxes[((x * 3) + (y))] = new SetUpBox((10 + (((x * 3) + (y)) * 2)), (game.gameWidth / 2 - 100) + 50 * x, ((game.gameHeight / 2 - 100) + 67 * y), this, game.mouse); } } save = new SaveButton(this); load = new LoadButton(this); exitButtonRect = new Rectangle(game.gameWidth - 150, game.gameHeight - 75,150,75); }