The Invent with Python Blog

Writings from the author of Automate the Boring Stuff.

New Game Source Code: Simon Gesture (Simon clone with mouse gestures)

Sat 17 September 2011    Al Sweigart

This game works with Python 2 or 3, though you'll need the Pygame framework first. This game makes use of the MooseGesture mouse gestures module I developed.

Draw out horizontal, vertical, or diagonal lines in the same directions that the dot moves. The pattern of the dot's movement becomes longer and longer.

Source code & music file.

If you'd like to learn about how the mouse gesture algorithm in the moosegesture.py module works, look at the MooseGesture post

Screenshot of Simon Gesture game


Learn to program for free with my books for beginners:

Sign up for my "Automate the Boring Stuff with Python" online course with this discount link.

Email | Mastodon | Twitter | Twitch | YouTube | GitHub | Blog | Patreon | LinkedIn | Personal Site