/// <summary> /// Context unique creation /// </summary> public TGPAContext() { Shots = new List <Shot>(); Enemies = new List <BadGuy>(); Bonuses = new List <Bonus>(); Saver = new Saver(); ParticleManager = new ParticleManager(); ButtonPrinter = new ButtonPrinter(); InputManager = new InputManager(); SongInfo = new SongInfo(); Cheatcodes = new Cheatcodes(); TextPrinter = new TextPrinter(); CurrentGameState = GameState.None; #if WINDOWS IsTrialMode = false; #else IsTrialMode = Guide.IsTrialMode; #endif PaperRect = new Rectangle(180, 630, 640, 150); ScoreMulti = 1f; DamageMulti = 1f; }
/// <summary> /// Global content loading /// </summary> /// <param name="Content"></param> public void LoadContent(ContentManager Content) { ParticleManager.LoadContent(Content); ButtonPrinter.LoadContent(Content); TextPrinter.LoadContent(Content); BonusTex = Content.Load <Texture2D>(@"gfx/bonus"); ShotsTex = Content.Load <Texture2D>(@"gfx/tirs"); HudTex = Content.Load <Texture2D>(@"gfx/hud"); NullTex = Content.Load <Texture2D>(@"gfx/1x1"); SongInfo.LoadContent(Content); }