int amount = 10; bunny [] bun = new bunny[amount]; void setup() { size(500, 300); framerate(30); init_bunny(); noCursor(); } //____________________________________DRAW_________________________________________________________ void init_bunny(){ for (int i=0; i right_bnd) { xpos = right_bnd; xspeed *= -1; } else if (xpos < left_bnd) { xpos = left_bnd; xspeed *= -1; } } void ymove() { ypos += yspeed; if (ypos > bottom_bnd) { ypos = bottom_bnd; yspeed *= -1; } else if (ypos < top_bnd) { ypos = top_bnd; yspeed *= -1; } } }