Skip to main content

Command Palette

Search for a command to run...

Fun with Pygame

Updated
2 min read
P

Developer, Podcaster, Streamer Full-time engineering manager focused on mobile app development. In my downtime (do people still have that?) I make apps, games, Podcasts, and live stream it all.

Recently, my live stream audience sent me on an interesting path. The challenge

Try creating a game with Pygame

If you want to see how it played out, you can watch or scan the stream video.

I’ll say right now, it was a lot easier to get started than I expected. After a quick install on my Mac Mini, I was into the documentation and a new empty file.

It took a quick look at the sample code to understand how to create the game window and then get an image on the screen.

Whilst I did not complete the game (yet) on this stream, I did get the basic game layout in place using existing assets from the Godot version that I actually have in the Google and Apple stores.

I did struggle to understand animation and still need to wrap my head around that; it seems to jump from location to location without animating in between, although I did get something moving at one point, then completely messed up the code.

Hey, this was the first time using the library! :)

I will be continuing this adventure as I see promise here, using very little code to get things running without the need for a heavy game engine, just a simple library and a few lines of code.

Let me know what you think. Have you used Pygame? I think it’s always great to know how to do the same thing using multiple technologies because you never know what you might need to do tomorrow.

More from this blog