I’m creating a game with pygame and I need a map where the user can select a country by clicking on it.
Can someone help me?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unless you find that done, I see no easy way of doing that —
You have to start by having a World map, of course — this one in Wikipedia seems a nice starting point:
http://upload.wikimedia.org/wikipedia/commons/0/03/BlankMap-World6.svg
–Ah, I see by your comments you have the map drawn —
Yes.if all you need is to get the color for a click, that is easier –
Pick the click coordinates with the mouse event for the click: