Esempio n. 1
0
        static void Main(string[] args)
        {
            var game = new Game("Spritemap Animation", 1920, 1080);

            game.GameFolder = "PlayerSessionDemo";
            var session = game.AddSession("Player");

            session.Data.ExportMode = DataSaver.DataExportMode.Config;
            game.SetWindowAutoFullscreen(true);
            var scene = new MainScene(session);

            game.MouseVisible  = true;
            Music.GlobalVolume = 1f;
            Sound.GlobalVolume = 0.5f;
            game.Start(scene);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            // Create a game that's 160 x 120
            var game = new Game("Spritemap Animation", 1920, 1080);

            // Set the window scale to 3x to see the sprite better.
            //game.SetWindowScale(5f);
            game.SetWindowAutoFullscreen(true);
            // Set the background color to a bluish hue.
            game.Color = new Color(0.3f, 0.5f, 0.7f);

            // Create a scene.
            var    scene     = new MainScene();
            Random allRandom = new Random();

            // Start the game with the scene that was just created.
            game.MouseVisible = true;
            game.Start(scene);
        }