public StandardScene(GraphicsDeviceManager gdm, MainGame game)
 {
     this.game = game;
     this.gdm = gdm;
     camera = new Camera(gdm.GraphicsDevice.Viewport, new Vector2(0, 0));
     hudCamera = new Camera(gdm.GraphicsDevice.Viewport, new Vector2(0, 0));
     input = new Inputs(camera, hudCamera);
 }
        public MainGame()
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferHeight = Globals.GAME_HEIGHT;
            graphics.PreferredBackBufferWidth = Globals.GAME_WIDTH;
            graphics.ApplyChanges();

            game = this;
            Window.Title = Globals.TITLE;

            Content.RootDirectory = "Content";
        }
 static void Main()
 {
     using (var game = new MainGame())
         game.Run();
 }
Exemple #4
0
 public GameScene(GraphicsDeviceManager gdm, MainGame game)
     : base(gdm, game)
 {
     this.world = new SimulationWorld(input);
     this.hud = new Hud(camera, hudCamera, input, world);
 }