/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here Content.RootDirectory = "Content"; Pax4Camera camera = new Pax4Camera("camera", null); Pax4Sound sound = new Pax4Sound("sound", null); Pax4Touch touch = new Pax4Touch("touch", null); Pax4Effect effect = new Pax4Effect("effect", null); Pax4Model model = new Pax4Model("model", null); Pax4Texture2D texture2D = new Pax4Texture2D("texture2D", null); Pax4SpriteFont spriteFont = new Pax4SpriteFont("spriteFont", null); //Pax4ParticleEffect particleEffect = new Pax4ParticleEffect(); //_particleEffect = Pax4ParticleEffect._current._particleEffectIceStarTrail; base.Initialize(); //_graphicsDeviceManager.IsFullScreen = true; _graphicsDeviceManager.ApplyChanges(); #if WINDOWS this.IsMouseVisible = true; #endif }
//private bool _dx = true; #endregion public Pax4Sound(String p_name, PaxState p_parent0) : base(p_name, p_parent0) { _current = this; MediaPlayer.IsRepeating = false; MediaPlayer.Volume = 0.50f; }
public override void Dx() { Reset(); //_dx = false; _soundEffect = null; _song = null; _stateSong = null; _currentSong = null; if (this == _current) { _current = null; } base.Dx(); }