Exercise 4: Flatland
The world of Flatland is filled with various 2 dimensional citizens. Each citizen is one of several species with specific shapes, colors, movement, & behavior.
Create 3 citizens of flatland using 3 separate classes, 1 for each species of citizen. Each species should have it's own look, movement, & behavior: ie. lines only move in 1 direction, squiggles trace randomly, etc. At least 1 species should respond to the mouse. Using arrays, your world should be filled with at least 5 instances of each citizen.
We will present in a small exhibition.
- Processing.org tutorial: Objects
- Object section in the Class Coding Examples