Tag Archives: Observer

Discover Python and Patterns (27): Music and Sounds

In this post, I add music and sounds to our tank game and make use of the Observer pattern to implement it efficiently.

Posted in Tutorial | Tagged , , | Leave a comment

Discover Python and Patterns (22): Animations

In this post, I propose to add an explosion animation when someone destroys a unit. It can be achieved in an effective way using the Observer pattern. I also add some optimization to get a smoother experience!

Posted in Tutorial | Tagged , , | Leave a comment

AWT GUI Facade (6): Mouse and Game Loop

After loading a level, I now propose to add interaction with the use of a mouse. This will be an opportunity to see two other patterns: the Observer Pattern to handle mouse events, and the Game Loop Pattern for synchronization … Continue reading

Posted in Tutorial | Tagged , , , | Leave a comment