コード例 #1
0
ファイル: Pax4Game.cs プロジェクト: pax7/LavaAndIce
        /// <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
        }
コード例 #2
0
ファイル: Pax4Model.cs プロジェクト: pax7/LavaAndIce
        public override void Dx()
        {
            if (this == _current)
            {
                _current = null;
            }

            base.Dx();
        }
コード例 #3
0
ファイル: Pax4Model.cs プロジェクト: pax7/LavaAndIce
 public Pax4Model(String p_name, PaxState p_parent0)
     : base(p_name, p_parent0)
 {
     _current = this;
 }