Beispiel #1
0
        public Engine(ContentManager content, ScreenManager screenManager)
        {
            this.ScreenManager = screenManager;

              components = new List<Component>();
              componentsToBeAdded = new List<Component>();
              componentsToBeRemoved = new List<Component>();

              Content = content;

              Audio = new Audio(this);
              Input = new InputState();
              //Physics = new Physics(this);
              Video = new Video(this);

              // these things require video
              Camera = new Camera2D(this);

              // lighting needs to know the camera matrix
              Lighting = new Lighting(this);

              SpriteBatch = new SpriteBatch(Global.GraphicsDeviceManager.GraphicsDevice);

              Updating = false;
        }
Beispiel #2
0
 /// <summary>
 /// Allows the screen to handle user input. Unlike Update, this method
 /// is only called when the screen is active, and not when some other
 /// screen has taken the focus.
 /// </summary>
 public virtual void HandleInput(InputState input)
 {
 }