Because of this I doubt I'll get any programming done because:
1. I didn't bring my laptop
2. I'm on a mac
However there is a chance that I will do something. If I can get xCode installed then maybe I could get my engine/game working on a mac. Of course this will take a lot of time so then again maybe not.
Anyway here is some code which I converted from blitzMax to c++
void LightMap(int x, int y, int radius){ float a1, a2; int tx, ty, k; for (a1 = 0.0f; a1 < 90.0f; a1 += 0.5f) { a2 = a1 * 4.0f; for (k = 0; k < radius; k ++) { tx = x + (cos(a2) * k) + (tileset.width / 2.0f); // Needs to be centred so add 1/2 tile width/height ty = y - (sin(a2) * k) + (tileset.height / 2.0f); tx = tx / tileset.width; ty = ty / tileset.height; if (tx > 0 && tx < width && ty > 0 && ty < height) { tile[tx][ty].explored = true; if (tile[tx][ty].vBlock == true) { break; } else { tile[tx][ty].fogged = false; } } } }}
-- Not sure if it works, this is just a rough interpretation of the code. I have a working version at home.
Spending your vacation porting software, erm, well...