public static void Main(string[] args) { Console.Clear(); MainTools.ColouWrite(true, "Welcome to the Hundred Cycle Cyclone!", ConsoleColor.Yellow); System.Threading.Thread.Sleep(576); MainTools.ColouWrite(true, "The game where you have to defeat incoming cyclones, and stop them wreaking havoc!", ConsoleColor.DarkCyan); byte cq = 0; while (true) { if (cq >= 1) { MainTools.ColouWrite(true, "You have recovered to full health. The locals have given you some new tools.", ConsoleColor.Yellow); } cq += Convert.ToByte(1); Tornado main = new Tornado(); Player You = new Player(main, cq); You.Fight(); MainTools.ColouWrite(true, "Would you like to fight another cyclone? (y/n)", ConsoleColor.DarkYellow); string there = Console.ReadLine(); if (there == "n") { End(); } else if (there == "N") { End(); } else if (there == "no") { End(); } else { Console.Clear(); continue; } } }
public Player(Tornado enemy, byte count) { torn = enemy; cq = count; // countq: used as an iterator in loops Defence = Convert.ToSByte(Math.Ceiling(Convert.ToDouble(torn.Damage) / 3)); }