示例#1
0
        /// <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
        public Pax4Touch(String p_name, PaxState p_parent0)
            : base(p_name, p_parent0)
        {
#if !WINDOWS_MOUSE
            _touchPanelCapabilities = TouchPanel.GetCapabilities();
#endif
            Reset();

            _flickVelocityThreshold *= Pax4Camera._current._scale2.X;

            _current = this;
        }