Example #1
0
        static void Main()
        {
            var config = new WindowsApplicationConfig
            {
                Title  = "Astrid Demo",
                Width  = 800,
                Height = 480,
            };

            using (var application = new WindowsApplication(config))
            {
                var game = new DemoGame(application);
                application.Run(game);
            }
        }
Example #2
0
        static void Main()
        {
            var config = new WindowsApplicationConfig
            {
                WindowTitle  = "Astrid Demo",
                WindowWidth  = 360,
                WindowHeight = 600,
            };

            using (var application = new WindowsApplication(config))
                using (var game = new DemoGame(application))
                {
                    application.Run(game);
                }
        }
Example #3
0
        static void Main()
        {
            var config = new WindowsApplicationConfig
            {
                Title       = "Hello Astrid",
                Width       = 800,
                Height      = 480,
                ContentPath = "Content"
            };

            using (var application = new WindowsApplication(config))
            {
                var game = new Game(application);
                application.Run(game);
            }
        }
 public WindowsApplication(WindowsApplicationConfig config)
 {
     _config = config;
 }