/Samples/AdvancedGameExample/Program.cs
C# | 24 lines | 14 code | 2 blank | 8 comment | 0 complexity | e078fad7237ed15bcf9fb628eab0e61a MD5 | raw file
Possible License(s): Apache-2.0
- using Delta.Engine;
- using Delta.Utilities;
-
- namespace AdvancedGameExample
- {
- /// <summary>
- /// Program class, just provides a Main entry point.
- /// </summary>
- static class Program
- {
- /// <summary>
- /// The entry point for the application, will just start the Game class!
- /// </summary>
- static void Main()
- {
- // If we don't have Settings yet (it is a bug), force using physics!
- Assert.False(string.IsNullOrEmpty(Settings.Modules.PhysicsModule),
- "We need a PhysicsModule setup in Settings to launch this example!");
-
- // Starting a game is as easy as this :)
- Application.Start(new Game());
- }
- }
- }