🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Latest pygame Activity
interesting….
Motivation is a tricky thing, it comes and goes randomly and you never know when it will strike.
My advise is to build a team for your game. Working with others offers a lot of motivation.
Find a person or a few people that complement your strengths and weaknesses.
Set time as…
There are different kinds of “impossible”:
Hi, i have very good news. I did it! Thanks for your help. I finally have the dialog box i wanted. It's able to print multiple lines and it can render text char by char. Again thank you.
Edit: Your code is works btw. I just add blit to your code and it works very well.
if self.animation_loop2 >= 5:
self.kill
I am guessing you expect this to kill the character, but you only say the name of the function, it never gets executed (you need to append a pair of parenthesis to it for that, ie “self.kill()”), so the next loop you are trying to get the 6th sprite from …
This is not a Game Design question. Game Design and Programming are not the same. Moving to For Beginners.
pygame 2.0, the most popular game library for python has been released on its 20th birthday.
What's the best feature of pygame 2? Maybe it's "backwards compatibility". For many, many apps pygame 2 is backwards compatible. Have an pygame app from the year 2000? It will probably work. We still have so…
I propose to introduce Python classes to implement the Game Loop pattern. Using these tools, I show how to refactor the code in the previous post to get a more robust and readable program.
This post is part of the Discover Python and Patterns series
Create a class with PythonIn this post, I introduc…
I chose to write an Arkanoid-like clone (see the original below), assuming this would be a relatively simple place to start with PyGame.
Arkanoid. Fresh outta the 80s.So I coded away and felt joy and satisfaction as I quickly implemented a sprite sheet loader, platform movement, block an…
Thanks to the Pygame library we installed in the previous post, we can draw 2D graphics. In this post, I propose to introduce controls with the keyboard as well as some improvements like window centering and frame rate handling.
This post is part of the Discover Python and Patterns series
Keyboard e…@Prototype thank you, I got it working now!
In the previous posts, I introduced enough of Python and patterns to start creating games with graphics using the Pygame library.
This post is part of the Discover Python and Patterns series
Install PygamePygame is a popular library for creating 2D games. Like the random library we used before, the …
Basically, what happens is that you let go of seeing integers as values, and instead see them as a collection of 0/1 bits. Python has operators &, |, ^, <<, and >> to work with collections of bits. The bits view is also why ‘bin’, ‘oct’, and ‘hex’ exist in Python. A decimal va…