Im trying to work on a simple lighting engine for my tile game. The idea is to set the tile opacity so the unlit tiles are black or very dark, and a segment (or ray) is being projected from my player where the first point is at my player and the second point follows my mouse pointer so I can "aim" my light source. I want to be able to get the tiles that this segment intersects, and then change their opacity. The problem is that I dont see a method in cocos to accomplish this. It looks like the only way is to use a Rect to get cell regions. Any ideas?
-- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cocos-discuss. For more options, visit https://groups.google.com/groups/opt_out.
