Discover Python and Patterns (28): Installer

We got a complete game, but we need a specific Python environment to run it. In this post, I show how to create a standalone executable and an installer!

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.

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

Discover Python and Patterns (26): Game modes

To merge the menu in the previous post with the tank game, I create game modes thanks to an improved Game Loop pattern.

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

Discover Python and Patterns (25): Menu

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

Continue reading
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.

Continue reading
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.

Continue reading
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!

Continue reading
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.

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

The next post on “Discover Python & Patterns” is delayed

The next post of the “Discover Python & Patterns” series is not ready… There is a lot of content and I would like to offer the best presentation. It will be ready next week.

I have completed the program for this post, and now the tank and towers can shoot bullets. I did a short video presentation:

See you next Wednesday!

Posted in News | Leave a comment

Discover Python and Patterns (20): Better commands

Since we saw the class inheritance, I can show you how to get a better implementation of the Command pattern. It eases a lot the management of commands and introduces exciting features.

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