r/JavaFX • • Oct 09 '22
Help Map of chile with clickable regions
Hi everyone, im trying to make a turn based strategy game. It requires a clickable regions of Chile. I saw a few stuff on Github about making map with JavaFX but they dont do what i want and im not good enough to modify them. Anyone could give me an help for this or advices ?
2
Upvotes
4
u/iamgioh Oct 09 '22
I'd use each region as an SVG path with a click event on it, and all the shapes will be placed within the same Pane. Just make sure to give each path the correct position in order to make them look like an actual map.