Skip to main content
GameDev.net gamedev.net
phylyp

phylyp's Blog

Member since Sep 2019

All Posts

Discover Python and Patterns (11): Class

Discover Python and Patterns (11): Class

I propose to introduce Python classes to implement the Game Loop pattern. Using these tools, I show how to refactor the code in the previous post to...

· 6.6k
Discover Python and Patterns (9): Pygame

Discover Python and Patterns (9): Pygame

In the previous posts, I introduced enough of Python and patterns to start creating games with graphics using the Pygame library.This post is part of...

· 6.5k
Discover Python and Patterns (6): Random

Discover Python and Patterns (6): Random

In the previous post, the magic number is always the same. I propose now to introduce random numbers to change the magic number every time we launch...

· 3.9k · 1
Discover Python and Patterns (5): Integers

Discover Python and Patterns (5): Integers

In previous posts, I only used strings and booleans. In this one, I use a new data type called “int” (for integer) that allows the storage and...

· 3.1k
Discover Python and Patterns (4): Loops

Discover Python and Patterns (4): Loops

The previous game only allows one try: you have to restart it to propose another word. In this post, I introduce loops, and I use them to repeat the...

· 3.8k
Discover Python and Patterns (1): Start

Discover Python and Patterns (1): Start

In this series, I propose an introduction to programming for beginners. To do so, I choose the Python language, which is today one of the best (if...

· 3.1k
The paperback version of my book is out!

The paperback version of my book is out!

The paperback version of my book "Learn Design Patterns with Game Programming" is finally out! The Kindle version is updated with some improvements...

· 2.5k
AWT GUI Facade (7): Draw text

AWT GUI Facade (7): Draw text

Graphic libraries usually provide methods to draw text on the screen. These handy methods are often quite slow to run because they recompute many...

· 4.6k
AWT GUI Facade (6): Mouse and Game Loop

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

· 5.1k
AWT GUI Facade (5): Load a level

AWT GUI Facade (5): Load a level

In this article, I propose to use the Visitor Pattern to easily load a level. The GUI facade in the previous post is used to display the level. This...

· 3.8k
AWT GUI Facade (4): Draw with tiles

AWT GUI Facade (4): Draw with tiles

I continue the extension of the graphic facade (see previous article), with here the addition of a very classic form of drawing for video games:...

· 3.9k
AWT GUI Facade (3): Display an image

AWT GUI Facade (3): Display an image

The facade seen in the previous article has only an interface with its methods. It is also possible to enrich a facade with additional interfaces,...

· 4.9k · 1
AWT GUI Facade (2): Draw

AWT GUI Facade (2): Draw

In this article, I propose to continue the design of a facade for a 2D tile game (previous post). I add two new features: creation/destruction of the...

· 4k
AWT GUI Facade (1): display a window

AWT GUI Facade (1): display a window

In this series, I propose to discover the Facade Pattern. In short, this pattern defines an interface that allows a reduced and simplified use of a...

· 5.3k