예제 #1
0
 public static void Main(string[] args)
 {
     var conf = new GameConfiguration {
         Width = 480,
         Height = 480,
         FixedFramerate = false,
         FixedWindow = true,
         WindowTitle = "nginz :: FlameThrowah",
         ContentRoot = "../../assets",
     };
     using (var game = new MainGame (conf))
         game.Run ();
 }
예제 #2
0
 /// <summary>
 /// Initializes the <see cref="nginz.GameConfiguration"/> struct.
 /// </summary>
 static GameConfiguration()
 {
     Default = new GameConfiguration {
         Width = 640,
         Height = 480,
         TargetFramerate = 60,
         Fullscreen = false,
         FixedWindow = true,
         FixedFramerate = true,
         WindowTitle = "nginZ Engine",
         Vsync = VsyncMode.Adaptive,
         ContentRoot = "Assets",
     };
 }
예제 #3
0
 public static void Main(string[] args)
 {
     var config = new GameConfiguration {
         FixedFramerate = false,
         FixedWindow = true,
         Fullscreen = false,
         Width = 640,
         Height = 480,
         Vsync = VsyncMode.Off,
         WindowTitle = "nginz :: Testgame (Python scripting)",
     };
     var game = new MainGame (config);
     game.Run ();
 }
예제 #4
0
 public static void Main(string[] args)
 {
     var conf = new GameConfiguration {
         Width = 640,
         Height = 480,
         FixedFramerate = false,
         Fullscreen = false,
         FixedWindow = true,
         Vsync = VsyncMode.Off,
         WindowTitle = "nginz :: Iodine Test Game"
     };
     using (var game = new MainGame (conf))
         game.Run ();
 }
예제 #5
0
 static void Main(string[] args)
 {
     var conf = new GameConfiguration {
         Width = 1280,
         Height = 720,
         WindowTitle = "nginz Game",
         FixedWindow = false,
         Vsync = VsyncMode.Off,
         FixedFramerate = false,
         TargetFramerate = 60,
         ContentRoot = "../../assets",
     };
     var game = new TestGame (conf);
     game.Run ();
 }
예제 #6
0
 public static void Main(string[] args)
 {
     var conf = new GameConfiguration {
         Width = 640,
         Height = 480,
         FixedWindow = true,
         FixedFramerate = false,
         Vsync = VsyncMode.Off,
         Fullscreen = false,
         WindowTitle = "nginz :: Flappy Mascot",
         ContentRoot = "../../assets"
     };
     using (var game = new MainGame (conf))
         game.Run ();
 }
예제 #7
0
        static void Main(string[] args)
        {
            var config = new GameConfiguration {
                Width = 800,
                Height = 600,
                WindowTitle = "Particles Test",
                FixedWindow = true,
                Vsync = VsyncMode.Off,
                FixedFramerate = false,
                Fullscreen = false,
                TargetFramerate = 60,
                ContentRoot = "../../assets",
            };

            new MainGame (config).Run ();
        }
예제 #8
0
        static void Main(string[] args)
        {
            var config = new GameConfiguration {
                Width = 640,
                Height = 480,
                Fullscreen = false,
                FixedFramerate = false,
                FixedWindow = true,
                WindowTitle = "Another Test Game",
                TargetFramerate = 60,
                Vsync = VsyncMode.Off,
                ContentRoot = "../../assets",
            };

            new MainGame (config).Run ();
        }
예제 #9
0
 public MainGame(GameConfiguration config)
     : base(config)
 {
 }
예제 #10
0
        /// <summary>
        /// Initializes a new instance of the <see cref="nginz.Game"/> class.
        /// </summary>
        /// <param name="conf">Conf.</param>
        public Game(GameConfiguration conf)
        {
            // Set the configuration
            Configuration = conf;

            // Initialize the keyboard buffer
            Keyboard = new KeyboardBuffer ();

            // Initialize the actions
            ContextActions = new ConcurrentQueue<Action> ();
            UIActions = new ConcurrentQueue<Action> ();

            // Initialize scripting enviroment
            IsRunningInScriptedEnvironment = false;

            // Set UI controller
            UI = UIController.Instance;
        }
예제 #11
0
 public TestGame(GameConfiguration conf)
     : base(conf)
 {
 }