Example #1
0
        public override void Draw(SpriteBatch sb, Rectangle bounds)
        {
            base.Draw(sb, bounds);


            // TODO: Add your drawing code here
            _MapManager.Draw(sb, bounds);
            testGuy.Draw(sb);
        }
Example #2
0
        public override void Draw(SpriteBatch sb, Rectangle bounds)
        {
            base.Draw(sb, bounds);


            // TODO: Add your drawing code here
            _MapManager.Draw(sb, bounds);

            //if(hoveredTile != null)
            //{
            //    spriteBatch.Draw(rectTex, hoveredTile.destRect, Color.White);
            //}

            if (TileOne != null)
            {
                sb.Draw(rectTex, TileOne.destRect, Color.White);
            }


            if (TileTwo != null)
            {
                sb.Draw(rectTex, TileTwo.destRect, Color.Blue);
            }

            if (TileOne != null && TileTwo != null)
            {
                Tile prevTile = TileOne;
                if (path != null)
                {
                    foreach (Tile t in path)
                    {
                        DrawLine(sb, prevTile.tileCenter, t.tileCenter);
                        prevTile = t;
                    }
                }
            }
        }