Building game using pygame
Python game development series using pygame.
Introduction to PyGame
Welcome to the beginning of the first part of this PyGame tutorial where we are going to build a game using Python’s pygame module from scratch.
What are we going to build
This post will mostly talk about the way this is going to look in the end.
Starting the pygame project
Let’s get the project started.
Initializing the pygame window
Let’s start by initializing the game window so that we can start with the game dev.
Updating the pygame window attributes
There are a few attributes in case of pygame window that we can update. Let’s dive a little into so that we know about all the options that we have.
Global constants for snake game
We will need to add a few constants to our game which can be used to handle the movements, total size and grid architecture of the game.