Ejemplo n.º 1
0
        public override void Draw()
        {
            SpriteBatch.Begin();

            //SHADERS START
            if (blurEffect == null)
                blurEffect = new BlurEffect(SpriteBatch.GraphicsDevice, Content);
            SpriteBatch.End();
            blurEffect.start();
            SpriteBatch.Begin();

            SpriteBatch.Draw(background, background_dest, Color.Navy);
            visualizer.Draw(SpriteBatch);
            //pad.Draw(SpriteBatch);
            //lifebar.Draw(SpriteBatch);

            // SHADERS END
            SpriteBatch.End();
            blurEffect.applyEffect(SpriteBatch);
            SpriteBatch.Begin();

            pad.Draw(SpriteBatch);
            lifebar.Draw(SpriteBatch);
            grades.Draw(SpriteBatch);

            //runner.Draw(SpriteBatch);

            SpriteBatch.End();
            base.Draw();
        }
Ejemplo n.º 2
0
        public HexTile(ContentManager contentmanager, float X = 0, float Y = 0)
            : base()
        {
            position = new Vector2(X, Y);
            content = contentmanager;
            texture_base = content.Load<Texture2D>("hexagon_base");
            texture_press = content.Load<Texture2D>("hexagon_press");
            #if ANIMATED_TILE
            texture_move = content.Load<Texture2D>(ExhibeatSettings.GrowthAnimationName);
            spritesheet = content.Load<SpriteSheet>(ExhibeatSettings.GrowthAnimationName + "_sheet");
            #else
            texture_move = content.Load<Texture2D>("hexagon_empty");
            #endif
            note_origin = new Vector2(texture_base.Width / 2, texture_base.Height / 2);
            press_origin = new Vector2(texture_press.Width / 2, texture_press.Height / 2);
            notes = new List<VisualNote>();

            clapSongIdx = ExhibeatSettings.GetAudioManager().open(ExhibeatSettings.ResourceFolder + "taiko-normal-hitclap.wav");
            blurEffect = null;
        }