Search found 68 matches

by legendman3
Thu Feb 09, 2012 12:07 am
Forum: Support and Development
Topic: How can i divide up a map?
Replies: 19
Views: 7980

Re: How can i divide up a map?

Ok it is still not working. Anyone wanna see why?
by legendman3
Wed Feb 08, 2012 9:21 pm
Forum: Support and Development
Topic: How can i divide up a map?
Replies: 19
Views: 7980

Re: How can i divide up a map?

MarekkPie wrote:It looked like you were a bit confused as well on how love.mousepressed() (or for that matter any of the LOVE callbacks work).
This was true.
by legendman3
Wed Feb 08, 2012 2:27 pm
Forum: General
Topic: lol physics
Replies: 3
Views: 2128

Re: lol physics

Schools blocking youtube. Can't watch funny video. :/
by legendman3
Wed Feb 08, 2012 2:10 pm
Forum: Support and Development
Topic: How can i divide up a map?
Replies: 19
Views: 7980

Re: How can i divide up a map?

Thank you both of you.
by legendman3
Wed Feb 08, 2012 3:10 am
Forum: Support and Development
Topic: How can i divide up a map?
Replies: 19
Views: 7980

Re: How can i divide up a map?

By the way what am i doing wrong?
HjREi.png
HjREi.png (6.33 KiB) Viewed 333 times

Code: Select all

colormap = love.graphics.newImageData("images/coloredmap.png")
by legendman3
Wed Feb 08, 2012 2:52 am
Forum: Support and Development
Topic: How can i divide up a map?
Replies: 19
Views: 7980

Re: How can i divide up a map?

https://love2d.org/wiki/love.image.newImageData Though I was just going to say used the colored map as your viewed map, but Jasoco's method works if you want to keep the monocolored map. You might need to do some world-relative to map-relative conversions, since you aren't actually drawing the colo...
by legendman3
Wed Feb 08, 2012 2:33 am
Forum: Support and Development
Topic: How can i divide up a map?
Replies: 19
Views: 7980

Re: How can i divide up a map?

To expand on what MerekkPie said: You could make a second version of the image where every state is colored a unique solid color. Simple easy colors that you know the RGB values for. Then when you click on the visible map (Which would be the normal map, not the colored one) you would check the colo...
by legendman3
Wed Feb 08, 2012 1:51 am
Forum: Support and Development
Topic: How can i divide up a map?
Replies: 19
Views: 7980

Re: How can i divide up a map?

A (relatively) simple way would be to color the map, using a specific color for a specific state, and then when you click on the map, get the pixel data and compare it to a color. I'm eating right now, so you'll get no code, but I'll come back and add some later. I will try to code that while you e...
by legendman3
Wed Feb 08, 2012 1:29 am
Forum: Support and Development
Topic: How can i divide up a map?
Replies: 19
Views: 7980

How can i divide up a map?

Say i want to take this map: http://upload.wikimedia.org/wikipedia/c ... States.PNG and divide it up so that each state is its own *clickable* object. How would i go about doing that? (code would be nice to look at...)
by legendman3
Sun Feb 05, 2012 5:35 pm
Forum: Support and Development
Topic: Box-drawing characters/other UTF-8?
Replies: 17
Views: 9265

Re: Box-drawing characters/other UTF-8?

What if i have custom unicode characters? The Image Font (if you are talking about your another topic) only supports single-byte characters as its glyphs data. This has not been updated last time when I glanced at the code. So I think you need to wait for a bit longer. Or you can try ttf instead. O...