/// <summary> /// Allows the game component to perform any initialization it needs to before starting /// to run. This is where it can query for any required services and load content. /// </summary> public override void Initialize() { fx = (Audio.AudioFx)Game.Services.GetService(typeof(Audio.AudioFx)); input = (Input.IManageInput)Game.Services.GetService(typeof(Input.IManageInput)); base.Initialize(); }
public override void Initialize() { sprites = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch)); player = (Audio.Midi.Player)Game.Services.GetService(typeof(Audio.Midi.Player)); input = (Input.IManageInput)Game.Services.GetService(typeof(Input.IManageInput)); bm = ((Logic.BandMasterMode)((BandMaster)Game).Play); flare = Game.Content.Load<Texture2D>("Textures/flare1"); seperator = Game.Content.Load<Texture2D>("Textures/seperator"); starOn = Game.Content.Load<Texture2D>("Textures/star_on"); starOff = Game.Content.Load<Texture2D>("Textures/star_off"); spriteHeight = flare.Height / 4; spriteWidth = flare.Width / 4; }
/// <summary> /// Allows the game component to perform any initialization it needs to before starting /// to run. This is where it can query for any required services and load content. /// </summary> public override void Initialize() { input = (Input.IManageInput)Game.Services.GetService(typeof(Input.IManageInput)); splasher = (Graphics.SplashText)Game.Services.GetService(typeof(Graphics.SplashText)); audiofx = (Audio.AudioFx)Game.Services.GetService(typeof(Audio.AudioFx)); base.Initialize(); }