Skip to content Skip to sidebar Skip to footer
Showing posts with the label Pygame Surface

What Is The Difference Between Pygame Sprite And Surface?

Check the official documents as follows: Surface objects are objects that represent a rectangular 2… Read more What Is The Difference Between Pygame Sprite And Surface?

Using A Function Closes Pygame Window

The following is the String class. Using the draw function from this class in my main loop immediat… Read more Using A Function Closes Pygame Window

Pygame Creating Surfaces

Code: #!/usr/bin/python import pygame, time, sys, random, os from pygame.locals import * from time… Read more Pygame Creating Surfaces

How To Execute Event Repeatedly In Python?

I'm new to pygame programming. I need that operation increases character's speed (who is re… Read more How To Execute Event Repeatedly In Python?

How To Display The Correct Amount Of Images After Each Collision?

I am trying to display the right amount of balloons (the images) each time a collision is detected.… Read more How To Display The Correct Amount Of Images After Each Collision?