I'm making a 3D platformer just now and I'm trying to find the best way to scatter objects (such as coins) over the map in specific locations. (a bit like crackdown)
what's the most efficient way to do this?
I think I could use a function like this:
void collectible(int x, int y, int z)
{
dbLoadObject("coin.x",id);
dbPositionObject(id,x,y,z)
}
collectible(10, 2, 52);
collectible(71, 39, 32);
collectible(30, 47, 11);
etc..
}
or would classes or something else be better? as I could be dealing with hundreds of these....
Thanks