The version of this I saw was written by Joe Constan for the iPhone. The idea is simple, click on the screen and a dot will be created and begin to move. If two dots collide you loose. Here's the code for my version. In this game I use a different font for the text that appears (pages 83-85 of Getting Started with Processing or Drawing with Text tutorial) . I also use several custom functions (see Chapter 8 of Getting Started with Processing). Other important ideas:
|
Intro to Processing > Learning by Example >