-a- actually a
appleimg.resize(29,29);
in setup and a
if ( apple[i] ) image(appleimg,xi+1,yi+1);
looks best here.
-b- yes you need a random set of a apple position?
apple[ (int)random(many) ] = true;
-a- actually a
appleimg.resize(29,29);
in setup and a
if ( apple[i] ) image(appleimg,xi+1,yi+1);
looks best here.
-b- yes you need a random set of a apple position?
apple[ (int)random(many) ] = true;