/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
public ElementMenu(Game1 to,String a, Funkcja delegat,Vector2 poz) { temp = delegat; text = a; temporary = to; wielkosc += new Vector2(10,10); pozycja = poz; }
public static void Fullscreen(String a, Game1 dawaj) { if (dawaj.graphics.IsFullScreen) dawaj.graphics.IsFullScreen = false; else dawaj.graphics.IsFullScreen = true; dawaj.graphics.ApplyChanges(); }
public static void Buu(String a,Game1 dawaj) { switch (a) { case "Play": Config.menu = Menusy.difficulty; break; case "Resolution": Config.menu = Menusy.resolution; break; case "About": Config.menu = Menusy.about; break; } }
public static void Rozdzielczosc(String a, Game1 dawaj) { switch (a) { case "800x600": dawaj.UstawRozdzielczosc(new Vector2(800, 600)); break; case "1024x768": dawaj.UstawRozdzielczosc(new Vector2(1024, 768)); break; case "1280x800": dawaj.UstawRozdzielczosc(new Vector2(1280, 800)); break; case "1280x1024": dawaj.UstawRozdzielczosc(new Vector2(1280, 1024)); break; } }
public static void Pusta(String a, Game1 dawaj) { }
public static void Exit(String a, Game1 dawaj) { dawaj.Exit(); }
public static void Back(String a, Game1 dawaj) { Config.menu = Menusy.main; }
public static void Trudnosc(String a, Game1 dawaj) { switch (a) { case "Easy": Config.trudnosc = Difficulty.easy; break; case "Medium": Config.trudnosc = Difficulty.medium; break; case "Hard": Config.trudnosc = Difficulty.hard; break; } Config.statusGry = GameState.inProgress; dawaj.Inicjalizacja(); }