/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); ConfigureScreenPad(); PassLevel(); camera2d = Resolver.Instance.Resolve <ICamera2d>(); }
public ViewStateBase(GraphicsDeviceManager graphics, ContentManager content, ScreenPad screenPad, BossMovement bossMovement, int levelNumber, string levelName, IJsonMapManager jsonMapManager) { this.content = content; this.graphics = graphics; this.content = content; this.screenPad = BaseResolver.Instance.Resolve <IScreenPad>(); this.levelNumber = levelNumber; this.levelName = levelName; this.topLeftCorner = new Vector2((screenSize.X - gameScreenSize.X) / 2, (screenSize.Y - gameScreenSize.Y) / 2); this.jsonMapManager = jsonMapManager; camera2d = BaseResolver.Instance.Resolve <ICamera2d>(); DefineActions(); }