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); }
public Camera3D(JdGame game) : base(game) { }
public SceneManager(JdGame game) : base(game) { _allScenes = new List<IScene>(); _activeScenes = new Stack<IScene>(); }
public Camera2D(JdGame game) : base(game) { _game = game; }
public JdComponent(JdGame game) : base(game) { }
public InputManager(JdGame game) : base(game) { }
public JdDrawableComponent(JdGame game) : base(game) { }