public static void Main(string[] args) { Game game = new Game(); game.Initialize(800, 600, false); game.PushState(new TestState()); game.MaxFPS = 60; game.Display.Zoom = 100; //game.Display.CameraX = game.Display.ViewportWidth / 2; //game.Display.CameraY = game.Display.ViewportHeight / 2; while (!game.Done) { game.Run(); } }
/// <summary> /// Run the main game loop /// </summary> public void MainLoop() { game = new Game(); game.Initialize(1024, 768, false, "HIAGE Map Editor"); game.PushState(new MapEditorState(game, model)); model.ResourceManager = game.Resources; //model.CurrentTileset = model.ResourceManager.GetTileset("grassland"); //while (!game.Done && model.Running) { game.Run(); } Application.Quit(); }
public static void Main(string[] args) { Game game = new Game(); game.Initialize(800, 600, false, "Hiage Mario"); game.MaxFPS = 60; game.Display.Zoom = 150; //Log.OutputStreamWriter = new StreamWriter("log.txt"); PlayerState initialState = new PlayerState(); initialState.HealthStatus = PlayerState.Health.Small; game.PushState(new LevelState(game, initialState, "level1")); //game.PushState(new LevelState(null, game, "minimap")); //game.PushState(new LevelState(null, game, "test_multi")); game.Run(); }