Пример #1
0
        public override void Update(SAMTime gameTime, InputState istate)
        {
            base.Update(gameTime, istate);

            if (MonoSAMGame.IsDesktop())
            {
                //if (istate.IsKeyExclusiveJustDown(SKeys.R))
                //{
                //	var xcfg = XConfigFile.LoadFromString(System.IO.File.ReadAllText(@"F:\Symlinks\GridDominance\Data\presets\generic.xconf"));
                //	var pcfg = ParticleEmitterConfig.ParticleEmitterConfigBuilder.LoadFromXConfig(xcfg);
                //	_emitter.Alive = false;
                //
                //
                //	var scrn = HUD.Screen;
                //
                //	var path = VectorPathBuilder
                //		.Start()
                //		.MoveTo(scrn.TranslateHUDToGameCoordinates(-WIDTH/2f, -HEIGHT/2f))
                //		.LineTo(scrn.TranslateHUDToGameCoordinates(-WIDTH/2f, +HEIGHT/2f))
                //		.LineTo(scrn.TranslateHUDToGameCoordinates(+WIDTH/2f, +HEIGHT/2f))
                //		.LineTo(scrn.TranslateHUDToGameCoordinates(+WIDTH/2f, -HEIGHT/2f))
                //		.LineTo(scrn.TranslateHUDToGameCoordinates(-WIDTH/2f, -HEIGHT/2f))
                //		.Build();
                //
                //	var cfg = pcfg.Build(Textures.TexParticle, 2f, 3f);
                //
                //	_emitter = new PathGPUParticleEmitter(scrn, scrn.MapViewportCenter, path, cfg, GDConstants.ORDER_WORLD_SUPEREFFECTS);
                //
                //	HUD.Screen.Entities.AddEntity(_emitter);
                //}
            }
        }
Пример #2
0
        public static void Initialize(ContentManager content, GraphicsDevice device)
        {
            if (MonoSAMGame.IsDesktop())
            {
                TEXTURE_QUALITY = TextureQuality.HD;
            }
            else
            {
                TEXTURE_QUALITY = GetPreferredQuality(device);
            }

            LoadContent(content);
        }