Step 8. Arrays of Objects

Suddenly we have the tools to make quite a complex World. Click the image to run the World. When you drag the mouse, it makes random objects which then move randomly. This uses the P5 mouseDragged() function. We also make use of an array that starts empty and then has objects pushed onto it.


Tutorial 7.3
Arrays of Objects
Tweet this step: