• entries
90
59
• views
42086

# iAway

117 views

Well I'm currently away from home, and will be for a week. As for where I am, well I'm in a city called Leicester and living in my brothers house.

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.

You can get Xcode from the developer site (developer.apple.com).

Spending your vacation porting software, erm, well...

Quote:
 Original post by Ravuya You can get Xcode from the developer site (developer.apple.com). Spending your vacation porting software, erm, well...

It should be the password of whatever user account you're currently using, assuming it's an adminstrator and you know the password.