world map

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
blyzzard1
Prole
Posts: 8
Joined: Thu Jan 23, 2014 11:22 am

world map

Post by blyzzard1 »

hi guys,
I would like to know 3 things :
how could i make color spread on the image of the world map without coloring the sea?
how could I create bridge between the country?
how could i create a function that would be trigged later and would also spread color (like the first one
but it would even color the first one)
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: world map

Post by Plu »

These are non-trivial questions, we'll need more input. What kind of code have you already built, what kind of game are you making?

Do you want some sort of tile-map where controlled tiles slowly spread out to other, adjacent tiles? Or are you talking more like the fill-tool from a paint-program with high-level accuracy?

(Also this topic should be in "Support", not demos.)
blyzzard1
Prole
Posts: 8
Joined: Thu Jan 23, 2014 11:22 am

Re: world map

Post by blyzzard1 »

so heres with i have by now :

the game i am trying to create would be a kind of simulator were the color would represent a plague (or a vaccination campaing)
i would like to fill up the blue country with red (the color would spread at a knew speed) and after a few seconds the green color would start spreading at many place in the same time.
Attachments
lua - Copie (2).rar
(351.01 KiB) Downloaded 123 times
User avatar
sanjiv
Citizen
Posts: 88
Joined: Mon Feb 27, 2012 5:11 am

Re: world map

Post by sanjiv »

I've posted how I would approach the first question, but looking at your larger project, I don't think it's the solution you're looking for. If you want to color each country separately, then I think each country is going to have to be a separate image (solid country, with transparent background), and you'll just change the color at which it's drawn.

But maybe not. Tell us more about the project, or the simulation this is supposed to represent.
Attachments
spreading virus.love
(390.82 KiB) Downloaded 139 times
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 48 guests