Arrays, Objects, and more!



I decided to make a cat dance party.

I started with using an array and I deeply hoped that I wouldn’t need to use classes or methods. I ultimately used both.

After creating the array and the corresponding object for the cat’s position, I mapped that to a mouse click.

At this point, a method was really all I needed to get new cats plastered all over the board with subtle movement on the X and Y axis.

I tried to incorporate some more rotation, and that ultimately required that I use a class (or, at least, I think I needed to use class here).

Now you can make cats dance!