Exemple #1
0
        public static void LoadContent(GraphicsDevice gd)
        {
            _content = Game.Content;

            _spriteBatch = new SpriteBatch(gd);
            _font        = _content.Load <SpriteFont>("flixel/deffont");
            _xnatiles    = _content.Load <Texture2D>("flixel/xna_tiles");

            _scale     = ((float)_game.targetWidth / (float)width);
            FlxG.quake = new FlxQuake((int)_scale);
            FlxG.flash = new FlxFlash();
            FlxG.fade  = new FlxFade();
        }
Exemple #2
0
        /// <summary>
        /// Load Content
        /// </summary>
        /// <param name="gd"> Graphics device. </param>
        public static void LoadContent(GraphicsDevice gd)
        {
            _content = Game.Content;

            _spriteBatch = new SpriteBatch(gd);
            _font        = _content.Load <SpriteFont>("flixel/deffont");
            _xnatiles    = _content.Load <Texture2D>("flixel/xna_tiles");

            _scale          = ((float)_game.targetWidth / (float)width);
            FlxG.quake      = new FlxQuake((int)_scale);
            FlxG.flash      = new FlxFlash();
            FlxG.fade       = new FlxFade();
            FlxG.transition = new FlxTransition();
            FlxG.transition.createSprites(null, Color.DarkViolet, 16, 12, 30, 30, 0, 20, 0.03f);

            FlxG.cameras = new List <FlxCamera>();

            lastControlTypeUsed = CONTROL_TYPE_KEYBOARD;
        }
Exemple #3
0
        public static void LoadContent(GraphicsDevice gd)
        {
            _content = Game.Content;

            _spriteBatch = new SpriteBatch(gd);
            _font = _content.Load<SpriteFont>("flixel/deffont");
            _xnatiles = _content.Load<Texture2D>("flixel/xna_tiles");

            _scale = ((float)_game.targetWidth / (float)width);
            FlxG.quake = new FlxQuake((int)_scale);
            FlxG.flash = new FlxFlash();
            FlxG.fade = new FlxFade();
        }