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 (); }
/// <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", }; }
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 (); }
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 (); }
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 (); }
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 (); }
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 (); }
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 (); }
public MainGame(GameConfiguration config) : base(config) { }
/// <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; }
public TestGame(GameConfiguration conf) : base(conf) { }