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

Free book “Learn Design Patterns with Game Programming” last day!

This is the last day to get the kindle version of my book “Learn Design Patterns with Game Programming” for free on Amazon!

Amazon may suggest you borrow it – ignore it and do as if you want to buy it: it costs zero!

Posted in Tutorial | Leave a comment

Discover Python and Patterns (19): Mouse

In this post, I want to use the mouse to orient the unit weapons.

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

Free book “Learn Design Patterns with Game Programming” for 5 days!

The kindle version of my book “Learn Design Patterns with Game Programming” is free for 5 days on Amazon!

Amazon may suggest you borrow it – ignore it and do as if you want to buy it: it costs zero!

Posted in News | Leave a comment

Discover Python and Patterns (18): Layers

We got a background now, but we can get a better one with layers! Now that we saw the class inheritance, I can show you how to create and add new layers of different kinds easily.

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

Discover Python and Patterns (17): 2D arrays

We still have no background in our game: I add one in this post using 2D arrays.

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

Discover Python and Patterns (16): Inheritance

In this post, I present the basics of class inheritance, to represent our units (the tank and the canon tower) more efficiently.

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

Discover Python and Patterns (15): Lists

I introduce in this post Python lists: with them, we can store and process any number of items, for instance, all the canon towers in our game.

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

Discover Python and Patterns (14): Collisions

In this post, I add enemies and I show you how to test if the tank collides one of them.

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