public GameMenu(FireworkGame game) { InitializeComponent(); Game = game; Game.Pause(); }
static void Main(string[] args) { FireworkGame sim = new FireworkGame(); Console.WriteLine("Loading Assets"); sim.AddSprite(new Sprite(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures) + "\\Pachirisu Outline.bmp", 4)); sim.AddSprite(new Sprite(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures) + "\\LaurenText.bmp", 2)); sim.AddSprite(new Sprite(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures) + "\\BongoCat.bmp", 2)); sim.SaveScoreRange(new List <HighScore>() { new HighScore("Aaron", 100), new HighScore("F**k you", 200), new HighScore("Master Lauren", 2000) }); Console.WriteLine("Saving Assets"); Console.WriteLine("Assets in the simulation: "); foreach (IFilable f in sim.GetAllAssets()) { Console.WriteLine(f); } sim.SaveAssets(); Console.WriteLine("Opening Assets"); sim.LoadAssets(); Console.WriteLine("Assets in the simulation: "); foreach (IFilable f in sim.GetAllAssets()) { Console.WriteLine(f); } Console.ReadKey(); }
static void Main(string[] args) { Random rng = new Random(); FireworkGame game = new FireworkGame(); Enumerable.Range(0, 100).ToList().ForEach((o) => { game.SaveScore(new HighScore("Aaron", rng.Next())); }); game.GetAllAssets().ToList().ForEach((a) => { Console.WriteLine(a); }); game.GetHighScores().ForEach((a) => { Console.WriteLine(a); }); Console.ReadKey(); }
public MainMenu(FireworkGame game) { InitializeComponent(); Game = game; }