Monthly Archives: April 2020

Discover Python and Patterns (25): Menu

In this post, I show how to create a menu with Pygame, using the Game Loop pattern.

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

Discover Python and Patterns (24): Load levels

In the previous post, we created a new level using Tiled. I show you how to load it in our game.

Posted in Tutorial | Tagged , | Leave a comment

Discover Python and Patterns (23): Create Levels

In this post, I want to show you how to load a level created by Tiled, a free level editor.

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

Discover Python and Patterns (21): Bullets

It is time to shoot with our tank and destroy the towers! We have all we need: a state to represent bullets, commands to update them, layers for the rendering, and a UI to manage all of these.

Posted in Tutorial | Tagged , | Leave a comment