This site requires JavaScript, please enable it in your browser!
Greenfoot back
samuelshao
samuelshao wrote ...

2020/2/17

Map Game PLEASE HELP

samuelshao samuelshao

2020/2/17

#
So im trying to make a map game where you select a "country" and try to invade other countries. Also these countries will be clickable so that it can show resources and etc. How do i make it so that each country is abled to be click and also change the color of each country to show who is under it's control. I only have this picture as of now, also im not very good a coding but im doing this for a class project so pls help and any other tips are welcome.
danpost danpost

2020/2/17

#
The resource clicking is not easy -- but would be considered easy compared to changing the color of individual countries. I think this may be too advanced for a beginner to try and tackle. However, if you still would like to proceed, I would suggest that you start by creating images of the individual countries. Maybe for each, snip a small rectangle containing the country, the fill unwanted areas (parts of the image that do not represent part of the country) with black; then change all black to transparent. What you end up with is images whose non-transparent pixels exactly represent the countries and those non-transparent pixels can be found easily enough to change their colors.
You need to login to post a reply.