PyGame Basics: Image Effects

In this guide, we will be taking a look at some different image effects you can use within your PyGame. In the examples below, I will be drawing sample images at x: 480 and y: 128. To learn how to position images, you can take a look at this guide of ours. Scaling Images You can scale images with PyGame using the pygame.transform.scale method. This method, like the other methods part of pygame....

October 3, 2019 · 3 min · Jared

PyGame Basics: Drawing Images

In this tutorial, we will be walking through how to draw images with PyGame. Let’s dive right in. In your game file, you should see the set_mode method being called. This method call returns a Surface, which is pretty much just the canvas that we’re drawing to. Make sure that the return value of this method call is being assigned to a variable. I named my variable, display like to so:...

October 2, 2019 · 2 min · Jared

PyGame Basics: Introduction

We all know Python is highly flexible. What many don’t know is that you can create awesome games with a library called, PyGame. PyGame is a cross-platform set of game development modules for Python. This series is meant to help you learn the basics of PyGame, and is written so you don’t have to follow every part in order. Think of the PyGame Basics series as a reference, and not necessarily a step-by-step walk-through of each part (though you could read each part in order....

October 1, 2019 · 1 min · Jared