   Tile Based Game Questions
  I am using Visual Studio 2010 and Directx and i am trying to make a platform game, but i am new to using Tile MAps. 1. When you make an array for a tile map, does this look good?int MAPDATA[MAPWIDTH*MAPHEIGHT] = {0,1,2,3...}    {7,8,9,10,...}I've seen examples where the arrays are char map[x][y] and im not sure if there is a difference or not.2. How do i implement collision detection based on tiles?   My array is filed with numbers based on a map i created in Mappy so my array looks like {0,92,92,92,0,...}. Is there a way to set tile #92 as the floor and detect collision with only that tile since that would be used as the floor?   
  1. It does not make such a big difference, it's merely about how you process them.Like this:for (int i=0; i < ySize; i++)    for (int j=0; j < xSize; j++)   { map[j] = //do stuff  //or... map[i*ySize + j] = //do stuff   }2. Yes. Add to your Tile class some sort of flag. So you can loop through the tiles and check if the flag is set. If it is, you can check for collision.   ;  Yeah that makes sense, what is the best way to do collision detection for tile based game? Are tile masking and pixel perfect collision the same?? I've been search for tutorials, but i always seem to not be able to translate them into DirectX =/   ;  Have a look there.   