Building game using pygame

Python game development series using pygame.

Introduction to PyGame

#python #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

#python #pygame

This post will mostly talk about the way this is going to look in the end.

Starting the pygame project

#python #pygame

Let’s get the project started.

Initializing the pygame window

#python #pygame

Let’s start by initializing the game window so that we can start with the game dev.

Updating the pygame window attributes

#python #pygame

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

#python #pygame

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.