Example #1
0
File: Mob.cs Project: Cendrb/Arman
        public override void DrawInfo(BetterSpriteBatch batch)
        {
            base.DrawInfo(batch);
            Vector2 coord = GetRelativeCoordinates();
            coord.X += 510;
            coord.Y += 290;

            if(this.Range <= 5)
                batch.Draw(Arman.mobRangeID, coord, Color.Purple);
            else if (this.Range <= 10)
                batch.Draw(Arman.mobRangeID, coord, Color.Blue);
            else if (this.Range <= 20)
                batch.Draw(Arman.mobRangeID, coord, Color.Green);
            else if (this.Range <= 40)
                batch.Draw(Arman.mobRangeID, coord, Color.Yellow);
            else if (this.Range > 40)
                batch.Draw(Arman.mobRangeID, coord, Color.DarkRed);
        }
Example #2
0
 public virtual void DrawInfo(BetterSpriteBatch batch)
 {
 }
Example #3
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new BetterSpriteBatch(GraphicsDevice);

            background = Content.Load<Texture2D>(@"Sprites/sipky");
            fontCourierNew = Content.Load<SpriteFont>(@"Fonts/DefaultFont");
            fontCourierNewBig = Content.Load<SpriteFont>(@"Fonts/BigCourier");
            arial = Content.Load<SpriteFont>(@"Fonts/Arial");
            musicEnjoyTheSilence = Content.Load<Song>(@"Music/EnjoyTheSilence");

            //mob identifiers
            mobSpeedID = Content.Load<Texture2D>(@"Sprites/MobID/bottomMobID");
            mobRangeID = Content.Load<Texture2D>(@"Sprites/MobID/bottomMobID");

            //sounds
            playerDeath = Content.Load<SoundEffect>(@"Sounds/death");

            AddToQueue(musicEnjoyTheSilence);
        }