Tag Archives: Observer

OpenGL 2D Facade (19): Test content

Before I continue the facade, I want to create some game data to test it. As you may imagine, I use software design for that! Objective The expected result of this post is a simple level editor where we can … Continue reading

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

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