In software development, there's the concept of a "mode" – a distinct set of behaviors for a program that changes the way it receives user input. In this video we'll demonstrate a simple video game (using the PyGame framework) that uses three distinct modes of behavior, and use it as an example for how to implement modal behaviors in a program.
The code shown in this video is available at https://gist.github.com/syegulalp/ab5... - you are free to use it as you see fit.
--------------------------------
SUBSCRIBE: http://www.youtube.com/subscription_c...
FACEBOOK: / infoworld
TWITTER: / infoworld
WEBSITE: http://www.infoworld.com/