public void ThrowFiraballs() { fireball = new GameObject("fireball.txt", this.col - 30, (this.row+10)); fireball.Color = ConsoleColor.DarkYellow; fireball.Draw(); fireballs.Add(fireball); Sounds.PlayFireballThrow(); }
private static List<GameObject> ninjaStars = new List<GameObject>(); //the ninja stars currently available #endregion Fields #region Methods public static void ConstructPlayField() { Console.CursorVisible = false; GameObject building = new GameObject("building.txt", 1, 24); building.Color = ConsoleColor.DarkGray; building.Draw(); GameObject enemyHealth = new GameObject("EnemyHealth.txt", 200, 3); enemyHealth.Color = ConsoleColor.Red; enemyHealth.Draw(); GameObject ninjaStars = new GameObject("NinjaStars.txt", 10, 3); ninjaStars.Color = ConsoleColor.Green; ninjaStars.Draw(); GameObject buildingStrength = new GameObject("BuildingStrength.txt", 90, 3); buildingStrength.Color = ConsoleColor.Yellow; buildingStrength.Draw(); UpdateBuildingStrength(); UpdateEnemyHealth(); UpdateNinjaStars(); Player.Color = ConsoleColor.DarkGreen; Player.TopConstraint = 20; Player.LeftConstraint = 63; Player.RightConstraint = 100; Player.Draw(); }
public static void GameOver() { Thread.Sleep(500); Console.Clear(); GameObject gameOverText = new GameObject("GameOver_new.txt", 1, 1); gameOverText.Color = ConsoleColor.Red; gameOverText.Draw(); Sounds.GameOverSound.Play(); }
public static void Win() { Console.Clear(); Sounds.GameWinSound.Play(); GameObject gameWin = new GameObject("win_new.txt", 1, 1); gameWin.Color = ConsoleColor.Red; gameWin.Draw(); Thread.Sleep(5000); }
public static void Spash(string name, int time = 5000) { GameObject splashscreen = new GameObject(name, 1, 1); splashscreen.Draw(); Thread.Sleep(time); Console.ReadKey(); }
private void ThrowShuriken() { shuriken = new GameObject("Shuriken.txt", this.col + this.objectWidth, this.row + 1); shuriken.Color = ConsoleColor.Cyan; this.flyingShurs.Add(shuriken); Game.NinjaStars--; Game.UpdateNinjaStars(); }