2D Toolkit Forum

2D Toolkit => Support => Topic started by: nbelkin on January 27, 2013, 01:22:24 pm

Title: Fog in Fortix 2
Post by: nbelkin on January 27, 2013, 01:22:24 pm
Hello!
What is the best way to create game field like Fortix 2 with tk2d?
Here is reference:
http://www.youtube.com/watch?v=llCp-qnFl0s

Should I use tilemap for "fog" or i can use thousand of sprites (or something else)?
Game field 90 x 50 cells, each cell 10x10 pixels?

The main problem for me to choose best way to realize this dynamic "fog"
Thx for help!
Title: Re: Fog in Fortix 2
Post by: unikronsoftware on January 27, 2013, 08:02:56 pm
One layer of overlapping semitransparent sprites might actually do the job - you can have these in another layer in the tilemap. Rebuilding the tilemap should happen in a decent amount of time, as you won't have physics on that layer.
The only issue you'll have is the line on the edge - you could do that with the tilemap too - just have the permutations stored in the tiles, and when deleting tiles, pick the appropriate one to draw the outline.