예제 #1
0
 public ParallaxManager(JdGame game)
     : base(game)
 {
     _layers = new List<Layer>();
     _spriteBatch = new SpriteBatch(game.GraphicsDevice);
     var camera = game.GetComponent<Camera2D>();
     if (camera == null) throw new ArgumentException("Game does not contain a Camera2D component.");
     _camera = camera;
     _viewport = new Rectangle(0, 0, game.GraphicsDevice.Viewport.Width, game.GraphicsDevice.Viewport.Height);
 }
예제 #2
0
 public Camera3D(JdGame game)
     : base(game)
 {
 }
예제 #3
0
 public SceneManager(JdGame game)
     : base(game)
 {
     _allScenes = new List<IScene>();
     _activeScenes = new Stack<IScene>();
 }
예제 #4
0
 public Camera2D(JdGame game)
     : base(game)
 {
     _game = game;
 }
예제 #5
0
 public JdComponent(JdGame game)
     : base(game)
 {
 }
예제 #6
0
 public InputManager(JdGame game)
     : base(game)
 {
 }
예제 #7
0
 public JdDrawableComponent(JdGame game)
     : base(game)
 {
 }