/////////////////////////////////////// //////// DECLARE VARIABLES /////////// //////////////////////////////////// int creationMode; redBeing redDude; int xMove,yMove; //int redsList []; redBeing redsList[]; int maximReds; int currentRed; // green dudes greenBeing greensList[]; int maximGreens; int currentGreen; ////////////////////////////////// ///// VOID SETUP //////////////// //////////////////////////////// void setup(){ size(400,400); background(255); ellipseMode(CENTER_DIAMETER); // initiallize creationMode = 0; // initialize the vars for the reds maximReds = 127; //THERE'S A ZERO RED, so this is one less than actuall creatable reds redsList=new redBeing[maximReds]; currentRed = 0; // initialize green dudes vars currentGreen = 0; maximGreens = 127; greensList = new greenBeing[maximGreens]; } /////////////////////////////////// /////// VOID LOOP /////////////// ////////////////////////////////// void loop(){ background(255,255,255); /////// MOVE THE REDS ///////////////// for (int j=0; j See if there's an empty space in the IDs array (by looking for a maximumBeing+1 value two-> if there is not, do nothing three --> if there IS, get it's position in the IDs array, give it a new id (or this positions ID) and create a new being in this same position with this ID */ ///////////////////////////////////////////////////// ///////////// THE END /////////////////////// ///////////////////////////////////////////////////