If BALL_AMOUNT is 6 then I'd like SPAWN_1 to spawn 3 entities and SPAWN_2, spawn the other 3 entities, so half of what is defined.
How would I accomplish this with enum cases?
PHP Code:
#define BALL_AMOUNT 6
enum
{
SPAWN_1,
SPAWN_2,
};
public makespawn()
{
for(new i=0; i < BALL_AMOUNT; i++)
{
spawnballs()
}
}
spawnballs ()
{
switch(spawn)
{
case SPAWN_1:
{
Add code to spawn entities around the map.
}
case SPAWN_2:
{
Add code to spawn entities around the map.
}
}
}
__________________