Tag Archives: Game Loop
Before I continue the facade, I want to create some game data to test it. As you may imagine, I use software design for that! Objective The expected result of this post is a simple level editor where we can … Continue reading
With the previous program, the size of the window depends on the size of the level, which is problematic when the level is large. In this post, I update the shader programs to get a fast translation of the display. … Continue reading
To merge the menu in the previous post with the tank game, I create game modes thanks to an improved Game Loop pattern.
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 get a more robust and readable program.
The time has come to see our first design pattern: the Game Loop Pattern! This pattern can give us many good ideas to refactor our game in a very effective way.
In this post, I add the keyboard management to the facade, and I propose a way to detect key sequences. These sequences are used, for example, in games like Street Fighter II, where characters move according to specific key combos.