Code:
#define BALL_AMOUNT 6
enum
{
SPAWN_1 = 0, //I'm never sure if enum starts with 0 or 1.
SPAWN_2,
};
public makespawn()
{
for(new i=0; i < BALL_AMOUNT; i++)
{
spawnballs(i)
}
}
spawnballs (spawn)
{
switch(spawn % 2) // I don't know what the operator is called. I would explain it as, what will get left over if you deduct "2" until no longer possible. So either it's 0 or 1.
{
case SPAWN_1:
{
Add code to spawn entities around the map.
}
case SPAWN_2:
{
Add code to spawn entities around the map.
}
}
}
__________________