Creating a Game in Pygame: Health, Score and Lives

After completing today’s tutorial we will have finished a lot of loose ends in the space shooter. Every game has some kind of display or system to tell the player their current status, such as their health or strength, and some kind of reward system, displaying a score or even giving actual rewards for achieving some goal. These are all used as a way to give the player feedback about

Creating a Game in Pygame: Animating Sprites

There is something magical about animation. Seeing each still image assembled on top of one another with ever so slight variations to create the illusion of movement. And then playing those animations at higher speeds to create a moving picture. I still remember my first game was just a square that could move, but the first time I made it move I knew I loved game making and programming. Today,

Creating a Game in Pygame: Collision Detection and Player Attacks

I finished the last post and got super excited to just keep going today. To recap what we have done so far, we have created our space environment and background, loaded our player’s spaceship, added movement, and made two different kinds of enemies for our player, asteroids and enemy space fighters. Let’s get right into the next tutorial and finally give our player a way to fight back! In today’s

Creating a game in Pygame: Player Movement and Enemy AI (1 of 2)

Enemy AI is an important aspect of any game. Graphics, story, and music can all be drowned out if your game contains some wonky or useless AI or gameplay. Sometimes graphics takes a backseat and the developer can create a memorable experience from gameplay and simple graphics. When you decide to make your first game, think about the users’ experience. Try and think about what adventure you want them to

Creating a Game in Pygame: Draw Images in Pygame

That’s my checklist for getting started in making a game. After creating the game window, setting up my character, getting my character to move, …hmmmm… ah, yes! Loading images and a background. First, we’ll need to think about what kind of game we are going to create. Then, we will have to either make our own 2D sprites for the game, or download free ones. Finally, let’s write a little

Creating a Game in Pygame: Introduction and Three Types of Character Movements

I am writing this blog because I really love programming and creativity.  I believe that the only way to get better at something is to practice and get involved in your passions in as many ways as you can. The main language that I use is Python and I wanted to improve my skills as a programmer by also learning Pygame. I got interested in programming years ago by programming