How to implement "modes" in software, with a game as an example

Published: 12 September 2024
on channel: InfoWorld
333
14

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/


Watch video How to implement "modes" in software, with a game as an example online without registration, duration hours minute second in high quality. This video was added by user InfoWorld 12 September 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 333 once and liked it 14 people.