Introduction to Programming

using the Processing language

Lecturer: Maarten Lamers of the Media Technology MSc program at Leiden University
Teaching assistant: Joris Slob
Course developed by Bas Haring (2004)
Alterations by Maarten Lamers (2005, 2006, 2007)

Introduction    Lecture I    Lecture II    Lecture III    Lecture IV    Lecture V    Lecture VI    Lecture VII    Fun



Programming concepts

Classes
Objects
Designing complex programs


Reserved words

class

Homework Assignment 2

This assignment is very much like the first one, so if you want you can re-use its code. Make a program with multiple (more than one) "graphical elements" or things that behave autonomously. Moreover,
  1. the things should be objects (instances) of one or more classes,
  2. the things should somehow react to each other.
Tip: Don't aim for too complex programs! Start with something very simple -- when that works, extend your code to make it slightly more interesting. You can do this assignment in teams of two students if you wish; not three, however. Have your assignment validated by the lab assistant on October 23rd at the latest.