public SpriteManager(Game game, Camera2D camera, UserControlledSprite player)
     : base(game)
 {
     this.Camera = camera;
     this.spriteList = new List<Sprite>();
     this.Player = player;
     this.Player.Manager = this;
     this.contentManager = new ContentManager(game);
     spriteBatch = new SpriteBatch(
         Game.GraphicsDevice);
     this.levelManager = new LevelManager(this);
     this.restoreList = new List<Sprite>();
 }
Example #2
0
 public Level(String name, LevelManager manager)
 {
     this.Name = name;
     this.manager = manager;
     this.Sprites = new List<Sprite>();
 }