[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Rookie - playable map



> To create a simple "Risk" like map to send my hordes of armies
> around on, what would you advice to be the best? Is there somekind
> of "clickable" graphic-file to use or should I simply draw my rects
> in pygame and label them with ID's at gamestart?

One way would be to create two maps. One is the normal "pretty" map,
and the other is flat colored with each country in a different color.
If someone clicks on (300,215) of the pretty map, find the pixel color
on the flat colored map to tell which country they clicked on.

Alan