static void Main(string[] args) { Console.WriteLine("Are you superhero?! (Write 'yes')"); var str = Console.ReadLine(); string mode; if((str == "'yes'") || str == "yes") { mode = "SuperHero"; } else { mode = "SuperCancer"; } var resolution = SystemInformation.PrimaryMonitorSize; using (var game = new Game(resolution.Width, resolution.Height, mode)) { game.Run(); } Console.WriteLine(); Console.WriteLine("Now enter something to exit"); Console.ReadLine(); }
public RoomSupervisor(Game game) { _game = game; OnShotBorderCollision += ShotBorderHandle; OnShotPlayerCollision += ShotPlayerHandle; OnShotEnemyCollision += ShotEnemyHandle; OnPlayerFinishZoneCollision += PlayerFinishZoneHandle; }