public static void Main() { game = new Game(); game.SetLevels(new [] {new EditorLevel()}); game.Setup(); game.Run(); }
public static void Main(string[] args) { Console.WriteLine("server"); NetworkServer server = new NetworkServer(); server.Start(); var sl = new ServerLevel(server); var game = new Game(); Game.Zoom = 0.2f; game.SetLevels(new [] {sl}); game.Setup(); game.Run(); }
public static void Main() { game = new Game(); var thread = new Thread(() => { Application.Init(); physicsAdjuster = new PhysicsAdjuster(); physicsAdjuster.Show(); physicsAdjuster.DeleteEvent += (a, b) => { game.Quit(); }; Application.Run(); }); thread.Start(); game.Setup(); AttachAdjuster(); game.Quitting += () => Application.Quit(); game.Run(); thread.Join(); }