Step by step tutorial that explains how to program Simon Says in Processing. We will create a button class, a tone generator and the logic behind the game.
This tutorial is suited for beginning/intermediate programmers. We assume you have basic programming knowledge in Processing.
Check out the YouTube playlist with the 6 videos. The whole series will take you about 135 minutes to watch.
-
Simon Says 0: Introduction Simon Says
Introduction
-
Simon Says 1: Clickable coloured buttons
Creation of a Button object.
-
Generate tones with the Processing Sound library and trigger the notes with the buttons.
-
Let Simon say a sentence of random words.
-
Simon Says 4: User talks, Simon Checks
Let the user talk and simon check if the user said the right thing, if not Simon generates a new sentence.
-
Wrap up everything to one game. We implement the dialog.
Thanks to the excellent reverse engineering description from Simon Inns. His description of the reverse engineering of different Simon game is worthwhile the read.
Check out his site Waiting for Friday: Reverse engineering an MB Electronic Simon game
Processing 3.0 was used for this tutorial. This release already includes the Sound library.