Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void PostDraw(SpriteBatch s) {
- if (cd != 0)
- cd --;
- if ((Main.mouseState.LeftButton == Microsoft.Xna.Framework.Input.ButtonState.Pressed) && (cd == 0)) {
- cd = 20;
- pathing.AddNode(new Vector2((float)Main.mouseX + Main.screenPosition.X, (float)Main.mouseY + Main.screenPosition.Y));
- }
- Texture2D tex = Main.goreTexture[Config.goreID["NodeTest"]];
- for (float i = 0; i < pathing.GetSize(); i+=0.025f) {
- Vector2 position = pathing.GetPosition(i);
- s.Draw(
- tex,
- new Vector2(
- position.X - Main.screenPosition.X,
- position.Y - Main.screenPosition.Y
- ),
- new Rectangle?(
- new Rectangle(
- 0, 0,
- 25, 24
- )
- ),
- Color.White,
- 0.0f,
- new Vector2(
- 0, 0
- ),
- 1.0f,
- SpriteEffects.None,
- 0f
- );
- }
- }
Add Comment
Please, Sign In to add comment