Hey there,
I would like to use the Slick2D build-in Pathfinder classes.
Thoose work really great. I’ve made my own tiled map system based on a grid.
Every field is 50x50 px large. There are 25x14 tiles on my screen. Almost everything works great, he finds the perfect path to my goal. But if i set the goal to x: 13 and y: 13 I get an ArrayOutOfBoundsException, but this field exists in the map.
Exception: http://pastebin.com/1gFyr6FB
My code:
MainClass: http://pastebin.com/L8TY1qdr
Map.java: http://pastebin.com/7cdjNhs9
Field.java: http://pastebin.com/AYqpxPXu
Grid.java: http://pastebin.com/fKSq0tam
Could anyone help me please?
Thank you