All posts by Vern

Mouse Clicked on Image in Pygame

So, now that our image can animate and wrap around the screen, let’s try to click on it! First, though we should just take moment to learn about how the mouse itself works in pygame. The important new lines which are now part of our game loop is to constantly look to see if the mouse click … Continue reading Mouse Clicked on Image in Pygame →

Pygame Tutorials

One of the best ways for kids to learn python is to find project that you , personally, want to make. What is better than making games? S   Installing Pygame Super simple pygame window   How to add image to Pygame surface   How to animate Pygame object How to animate an image II (wrapping)   Mouse … Continue reading Pygame Tutorials →

How to animate an image in Pygame

One of the thing you want to do often, when making a game, is animate an object. We are going to learn how to move a red square image across the pygame window. Here’s an animation of the finished product:   The full code is at the below. Download Source Code Scroll down for a … Continue reading How to animate an image in Pygame →