r/learnpython • u/saintPirelli • Jan 21 '19
Python’s most underrated game engine for beginners
Hello,
for those of you interested in making retro games with Python and are just starting out (but know the basics) I have written up this tutorial using the Pyxel game engine. Mostly because I liked the engine and didn't find a single tutorial for it. Criticism welcome.
Link: http://blog.vomkonstant.in/2019/01/21/pythons-most-underrated-game-engine-for-beginners/
Cheers!
3
u/timbledum Jan 22 '19
I love this! This is a great library and awesome to see people putting together material for it. Writing a tutorial was actually the motivation for my most recent asteroids game, although it quickly got too complex for a tutorial.
Some other resources for pyxel newcomers:
List of user created games are in the pyxel wiki here - feel free to add your own!
Pyxel subreddit here - ask questions or show off your stuff!
Here's my implementation of pong I put together in pyxel – it has random pickups, some of which do pretty crazy things.
2
u/saintPirelli Jan 22 '19
Wow, this looks awesome, thanks for sharing it, I totally missed it on r/Python
32
u/Tree_Eyed_Crow Jan 21 '19
That looks pretty cool, I've used Pygame a lot, and this seems like it might be a little easier to get a simple game working.
If anyone else is curious, it uses OpenGL for rendering, so it probably supports hardware acceleration, unlike Pygame which uses an outdated version of SDL 1.2 without hardware acceleration support.
2
Jan 22 '19
I believe they're on the way to releasing Pygame with SDL 2 support, which might help with that?
My personal biggest issue with PyGame is that like a lot of software, the interface can be very arbitrary, owing to its age and need for backwards compatibility.
A lot of the newer features are great, though, and documentation is some of the best I've seen, also owing to its age and backwards compatibility.
1
u/Tree_Eyed_Crow Jan 22 '19 edited Jan 22 '19
I'm not really holding my breath for Pygame 2 anymore (although I'll be really excited when it does come). Pygame has been on major version 1.9 for 9 years with only minor updates since then, and they've been saying they're close to releasing Pygame 2 for the last 3 years or so.
1
u/fasnoosh Oct 17 '24
I'm replying 6 years after you commented, but for others stumbling on this, Pygame 2 was released in October 2020: https://github.com/pygame/pygame/releases/tag/2.0.0
7
u/Kleptonick Jan 21 '19
RemindMe! 9 weeks "starting a basic course tomorrow"
1
u/RemindMeBot Jan 21 '19
I will be messaging you on 2019-03-25 22:50:48 UTC to remind you of this link.
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
FAQs Custom Your Reminders Feedback Code Browser Extensions
6
u/yrast Jan 21 '19 edited Jan 21 '19
The “gameplay gif” at the start of your blog doesn't seem to be loading.
Edit: upon reloading the page it loaded—pong! Awesome
1
Jan 22 '19
It does does not help that it's sharing a name with another software related to gamedev
1
u/saintPirelli Jan 22 '19
I was thinking the same thing, when I was looking for video tutorials on YT.
3
2
2
u/Quesenek Jan 21 '19
Thanks for this, I've been looking for a very simple game engine and this seems to fit the bill quite nicely.
2
u/Sanchless Jan 21 '19
Thank you for this guide man, it looks great and I plan to go through it fully.
2
u/AbAlph Jan 21 '19
First comment on Reddit (and for using the remindMe bot)! Thanks for taking the time and effort to do this.
RemindMe! Today 10pm "Do this good python tutorial"
2
2
2
2
Jan 22 '19
Looks great! I have a lot of love for the retro style and artificial limitations here. Not only does it encourage the ingenuity of users to work within the limits of the engine, but it also cuts out a lot of bloat that new programmers simply get lost with initially. :)
2
1
u/TotesMessenger Jan 22 '19
1
u/RobTheThrone Jan 22 '19
I’ve been thinking about doing a choose your own adventure game as something to work towards and build my knowledge with practical experience. Will definitely give the tutorial a shot when I get the chance.
9
u/orcasha Jan 21 '19
Fantastic! Thanks so much for putting the time.and effort into this tutorial! Pyxel looks exactly like what I'm after to get the game out of my head and onto the screen!