Simian:  A Flash Game of Pattern Recall

Flash ActionScript 2.0

As with the Rubik’s Cube, I was heavy into the Milton Bradley game Simon, growing up.  (I was much better at Simon!)  I thought it would be fun to code up a clone in order to re-create the experience in Flash.  To make it as flexible as possible, I decided to incorporate the EventDispatcher class to keep outside code updated on the inner workings of the game.  This way, the class can be used to “record” and “playback” patterns of more than just colored lights and tones. 

My version isn’t an exact clone — the original Simon lets you win after the sequence hits a certain length — but it captures the spirit of the game.  (Can a non-exact clone be called a clone?)  Playfully, I’m calling my version Simian; as in “monkey see, monkey do.”  Tutorial available here …

http://www.communitymx.com/abstract.cfm?cid=A7009

In the past, I’ve only posted links to my Community MX content if that particular article was free.  But this one was too much fun not to at least mention.  If you’re not already a member, you can sign up for a free trial (cancel with no obligation; or, if you like, subscribe!).  You can also purchase individual articles outright (usually $5 a pop).  This Simian article is the first in a two-part series:  this one steps through the CMXSimian class and the follow-up steps through two separate implementations of that class (including two FLA source files).

Here’s one of them:

[Flash content requires Flash Player 6 or higher.]


Leave a Reply