Hello Guest

Author Topic: Fog in Fortix 2  (Read 3197 times)

nbelkin

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
Fog in Fortix 2
« 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!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Fog in Fortix 2
« Reply #1 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.