by skydereign » Wed Sep 26, 2012 5:55 am
Well, since you are just storing the maps in global space, I'd recommend using just one large 3d array. You are storing the same number of integers, and that way you can use the array directly. Even if you were to use that system, I'd still recommend using an int to hold the level. That way you can use a switch to determine what level to load, instead of using the memcpy. Only other thing to watch out for is your use of getAnimName. For that to work, the actor calling the load_level must either be the tile actor, or have the same animation names as it. Both seem a bit weird, so I'd suggest using an array that holds all the tile names instead.