Esempio n. 1
0
        /**
         * Draw the wall as a line
         **/
        public void draw(SpriteBatch spritebatch, Texture2D texture)
        {
            Texture2D wallText = new Texture2D(spritebatch.GraphicsDevice, 1, 1, false, SurfaceFormat.Color);

            wallText.SetData(new[] { Color.White });
            GeometryTools.DrawLine(spritebatch, wallText, radius, Color.Red, start, end);
        }
Esempio n. 2
0
        public void debugDrawDestination(SpriteBatch spritebatch)
        {
            //debug draw for the pathfinding

            Texture2D wallText = new Texture2D(spritebatch.GraphicsDevice, 1, 1, false, SurfaceFormat.Color);

            wallText.SetData(new[] { Color.White });
            GeometryTools.DrawLine(spritebatch, wallText, 1, Color.Blue, position, destination.Position);
        }