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

            playerCamera = new Camera();

            entityManager = new EntityManager();
            systemManager = new SystemManager();
            AudioContext AC = new AudioContext();
        }
Beispiel #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);
        }
Beispiel #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");
 }
Beispiel #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 }
     };
 }
Beispiel #6
0
 static void Main()
 {
     using (var game = new MyGame())
         game.Run();
 }
 static void Main()
 {
     Time.Start();
     using (var game = new MyGame())
         game.Run();
 }