Example #1
0
        private static void Main(string[] args)
        {
            Settings.Framerate.IsLimited = false;
            Settings.Frametime.IsStatic = false;
            Settings.Framerate.Limit = 125;
            Settings.Frametime.StaticValue = 1.5f;

            var game = new SPGame();
            var window = new GameWindow(320, 240, 3);

            window.SetGame(game);
            window.Run();
        }
Example #2
0
        private static void Main()
        {
            Settings.Framerate.Limit = 60;
            Settings.Framerate.IsLimited = true;
            Settings.Frametime.IsStatic = false;
            Settings.Frametime.StaticValue = 1;

            var game = new BHGame();
            var gameWindow = new GameWindow(640, 480, 1);

            gameWindow.SetGame(game);
            gameWindow.Camera.Move(-new Vector2f(32, 16));
            gameWindow.Run();
        }
Example #3
0
        private static void Main()
        {
            Settings.Framerate.IsLimited = true;
            Settings.Framerate.Limit = 60;

            var gameWindow = new GameWindow(1024, 768, 1);
            var game = new TDGGame(gameWindow);
            var editor = new TDEEditor(gameWindow);

            game.Editor = editor;
            editor.Game = game;

            TDLFactory.Game = game;

            gameWindow.RenderWindow.Closed += (o, e) => Environment.Exit(0);
            gameWindow.SetGame(game);
            gameWindow.Run();
        }