Monthly Archives: February 2020

Discover Python and Patterns (17): 2D arrays

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

Posted in Tutorial | Tagged , | 3 Comments

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.

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.

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.

Posted in Tutorial | Tagged , | Leave a comment