コード例 #1
0
ファイル: Engine.cs プロジェクト: PhoenixWright/Mystery
        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;
        }
コード例 #2
0
ファイル: GameScreen.cs プロジェクト: PhoenixWright/Mystery
 /// <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)
 {
 }