Category Archives: Pygame

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 →

How to animate an image II- Wrap around screen

One of the problems with our prior pygame animation is that once the red square goes to far to the left, we don’t do anything. It just seems to be gone forever ! What we want to write is the python code that says, “Hey if the image goes all the way to left, off of … Continue reading How to animate an image II- Wrap around screen →

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 →