예제 #1
0
 static void Main()
 {
     Logger.Initialise();
     using (var game = new MyGame())
         game.Run();
     Logger.Close();
 }
예제 #2
0
        public MyGame() : base(WIDTH, HEIGHT)
        {
            gameInstance = this;

            playerCamera = new Camera();

            entityManager = new EntityManager();
            systemManager = new SystemManager();
            AudioContext AC = new AudioContext();
        }
예제 #3
0
        public MyGame() : base(1280, 760)
        {
            Title         = "We're All Doomed";
            gameInstance  = this;
            entityManager = new EntityManager();
            systemManager = new SystemManager();
            AudioContext AC = new AudioContext();

            InputManager.Initialise(this);
        }
예제 #4
0
 public MyGame()
     : base(1000, // Width
            800,  // Height
            GraphicsMode.Default,
            "Component based tower",
            GameWindowFlags.Default,
            DisplayDevice.Default,
            3, // major
            3, // minor
            GraphicsContextFlags.ForwardCompatible)
 {
     gameInstance  = this;
     mTimer        = new TimerObject();
     entityManager = new EntityManager();
     systemManager = new SystemManager();
     matManager    = new MaterialManager("Textures/TextureList.txt");
     shaderManager = new ShaderManager("Shaders/ShaderList.txt");
     modelManager  = new ModelManager("Geometry/ModelList.txt");
 }
예제 #5
0
 public MyGame() : base()
 {
     myGameInstance = this;
     graphics       = new GraphicsDeviceManager(this);
     graphics.PreferredBackBufferWidth  = 1280;
     graphics.PreferredBackBufferHeight = 720;
     Content.RootDirectory = "";
     LevelStructure        = new int[13, 13]
     {
         { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
         { 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0 },
         { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 },
         { 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0 },
         { 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0 },
         { 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0 },
         { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
         { 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0 },
         { 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0 },
         { 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0 },
         { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 },
         { 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0 },
         { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
     };
 }
예제 #6
0
 static void Main()
 {
     using (var game = new MyGame())
         game.Run();
 }
예제 #7
0
 static void Main()
 {
     Time.Start();
     using (var game = new MyGame())
         game.Run();
 }