public static void Start() { Hardware hardware = new Hardware(800, 600, 24, false); WelcomeScreen welcome = new WelcomeScreen(hardware); CreditsScreen credits = new CreditsScreen(hardware); MenuScreen menu = new MenuScreen(hardware); GameScreen game = new GameScreen(hardware); welcome.Show(); menu.Show(); game.Show(); credits.Show(); }
public void Start() { Hardware hardware = new Hardware(SCREEN_WIDTH, SCREEN_HEIGHT, 24, false); bool exit = false; WelcomeScreen welcome = new WelcomeScreen(hardware); welcome.Show(); MenuScreen menu = new MenuScreen(hardware); do { menu.Show(); switch (menu.ChosenOption) { case 1: GameScreen game = new GameScreen(hardware, 0); game.Show(); break; case 2: LoadScreen load = new LoadScreen(hardware); load.Show(); // To load the selected level GameScreen gameLoaded = new GameScreen(hardware, load.NumLevel); gameLoaded.Show(); break; case 3: ScoreBoard score = new ScoreBoard(hardware); score.Show(); break; case 4: CreditsScreen credits = new CreditsScreen(hardware); credits.Show(); break; default: exit = true; break; } } while (!exit); }
public void Start() { Hardware hardware = new Hardware(840, 755, 24, false); WelcomeScreen welcome = new WelcomeScreen(hardware); SettingScreen setting = new SettingScreen(hardware); ControllerScreen controller = new ControllerScreen(hardware); CreditsScreen credits = new CreditsScreen(hardware); MapCreationScreen mapedition = new MapCreationScreen(hardware); SelectLenguage select = new SelectLenguage(hardware); do { hardware.ClearScreen(); select.Show(); if (!welcome.GetExit()) { welcome.Show(); switch (welcome.GetChosenOption()) { case 1: setting.Show(); break; case 2: mapedition.Show(); break; case 3: controller.Show(); break; case 4: credits.Show(); break; case 5: welcome.GetExit(); break; } } } while (!welcome.GetExit()); }
public void Start() { Hardware hardware = new Hardware(SCREEN_WIDTH, SCREEN_HEIGHT, 24, false); WelcomeScreen welcome = new WelcomeScreen(hardware, this); MenuScreen menu = new MenuScreen(hardware, this); CreditsScreen credits = new CreditsScreen(hardware, this); hardware.ClearScreen(); welcome.Show(); do { hardware.ClearScreen(); menu.Show(); hardware.ClearScreen(); credits.Show(); }while (!menu.GetExit()); SetLanguaje(); }
public void Start() { Hardware hardware = new Hardware(800, 600, 24, false); WelcomeScreen welcome = new WelcomeScreen(hardware); CreditsScreen credits = new CreditsScreen(hardware); PlayerSelectScreen playerSelect = new PlayerSelectScreen(hardware); GameScreen game = new GameScreen(hardware); do { hardware.ClearScreen(); welcome.Show(); if (!welcome.GetExit()) { playerSelect.Show(); game.ChosenPlayer = playerSelect.GetChosenPlayer(); hardware.ClearScreen(); game.Show(); hardware.ClearScreen(); credits.Show(); } } while (!welcome.GetExit()); }
private void CreditsClick() { Hide(); creditsScreen.Show(); }
public void Start() { //TO DO Hardware hardware = new Hardware(SCREEN_WIDTH, SCREEN_HEIGHT, 24, false); IntroScreen intro = new IntroScreen(hardware); GameScreen game = new GameScreen(hardware); CreditsScreen credits = new CreditsScreen(hardware); PlayerSelectScreen playerSelect = new PlayerSelectScreen(hardware); ScoreBoardScreen scoreBoard; MainMenuScreen mainMenu = new MainMenuScreen(hardware); HelpScreen helpScreen = new HelpScreen(hardware); OptionsScreen optionsScreen = new OptionsScreen(hardware); intro.Show(); HordeModeScreen hordeMode; do { mainMenu.Show(); if (!mainMenu.GetExit()) { switch (mainMenu.GetChosenOption()) { case 1: playerSelect.Show(); game = new GameScreen(hardware); game.ChosenPlayer = playerSelect.ChosenPlayer(); game.Show(); break; case 2: if (lastGame != 0) { if (lastGame == 1) { playerSelect.Show(); game = new GameScreen(hardware); game.ChosenPlayer = playerSelect.ChosenPlayer(); game.Show(); } else { playerSelect.Show(); hordeMode = new HordeModeScreen(hardware); hordeMode.ChosenPlayer = playerSelect.ChosenPlayer(); hordeMode.Show(); } } break; case 3: playerSelect.Show(); hordeMode = new HordeModeScreen(hardware); hordeMode.ChosenPlayer = playerSelect.ChosenPlayer(); hordeMode.Show(); break; case 4: scoreBoard = new ScoreBoardScreen(hardware); scoreBoard.Show(); break; case 5: helpScreen.Show(); break; case 6: optionsScreen.Show(); break; case 7: credits.Show(); break; default: break; } } } while (!mainMenu.GetExit()); }