Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- KR Poliwhirl
- GscMap mtMortar = dummyGb.Maps["SilverCaveOutside"];
- GscMap route17 = dummyGb.Maps["Route17"];
- GscTile startTile = mtMortar[23, 28];
- for(int i = 0; i < 7 ; i++){
- for(int j = 0; j <= 1; j++){
- mtMortar[16 + i, 28 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Right, NextTile = mtMortar[17 + i, 28 + j], NextEdgeset = 0, Cost = 10 });
- mtMortar[16 + i, 28 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Right | Action.A, NextTile = mtMortar[17 + i, 28 + j], NextEdgeset = 0, Cost = 10 });
- mtMortar[17 + i, 28 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Left, NextTile = mtMortar[16 + i, 28 + j], NextEdgeset = 0, Cost = 10 });
- mtMortar[17 + i, 28 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Left | Action.A, NextTile = mtMortar[16 + i, 28 + j], NextEdgeset = 0, Cost = 10 });
- }
- }
- for(int i = 0; i <= 7; i++){
- for(int j = 0; j < 1; j++){
- mtMortar[16 + i, 28 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Down, NextTile = mtMortar[16 + i, 29 + j], NextEdgeset = 0, Cost = 10 });
- mtMortar[16 + i, 28 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Down | Action.A, NextTile = mtMortar[16 + i, 29 + j], NextEdgeset = 0, Cost = 10 });
- mtMortar[16 + i, 29 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Up, NextTile = mtMortar[16 + i, 28 + j], NextEdgeset = 0, Cost = 10 });
- mtMortar[16 + i, 29 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Up | Action.A, NextTile = mtMortar[16 + i, 28 + j], NextEdgeset = 0, Cost = 10 });
- }
- }
- Pathfinding.DebugDrawEdges(mtMortar, 0);
Advertisement
Add Comment
Please, Sign In to add comment