How Does Pygame Control Time With Examples
The pygame.time module is mainly used to manage time and game frame rate per second(FPS). This article will tell you how to use it with examples.
How Does Pygame Control Time With Examples Read More »
The pygame.time module is mainly used to manage time and game frame rate per second(FPS). This article will tell you how to use it with examples.
How Does Pygame Control Time With Examples Read More »
The pygame.mixer module provides several methods to play, pause, stop sounds. It supports a lot of sounds format files. This article will tell you how to use it to play multiple formats of sounds with examples.
Pygame Play Sounds Example Read More »
The pygame.font module provides methods for you to display text on the Pygame window screen. This article will tell you how to draw text on a Pygame surface object with examples.
How To Display Moving Text In Pygame Read More »
A digital image is composed of many pixels, the pixel is the basic unit of the image, and each pixel can use a different color, finally showing a colorful image. The split and merge of images refers to the split and merge of image colors. Python pillow Image class provides methods ( split() and merge()
How To Split, Merge & Blend Images Use Python Pillow Read More »
This article will tell you 2 methods to draw pixel units on pygame application windows screen with examples. One method will use the method pygame.draw.Rect(), the other method will use the pygame.PixelArray object.
How To Draw Pixels In Pygame Read More »
I create a pygame.PixelArray object uses the pygame main screen window surface object ( returned by the method pygame.display.set_mode() ), and when I assign color to each item of the pygame.PixelArray object in a loop it throws the error pygame.PixelArray IndexError: invalid index. This article will tell you how to fix it.
How To Fix Pygame.PixelArray IndexError: Invalid Index Error Read More »
This example will tell you how to implement animation in pygame game application. It will also tell you how to set the game app’s background image, and how to control the animation speed.
Pygame Animation Example Read More »
This article will tell you how to draw multiple shapes in pygame application with examples. It will use the multiple functions in the pygame.draw module, we will introduce them one by one.
How To Draw Shapes ( Line, Circle, Arc, Ellipse, Rectangle ) In Pygame Read More »
This article will tell you how to create a Pygame application that displays the text Hello World on the Pygame app window center. It also tells you how to create the Pygame app window, set the window title, set the window background color, how to create the text with provided text content, text color, text
Pygame Hello World Example Read More »
Python Tkinter is the python built-in GUI application development library, it is very easy and flexible to use to create simple GUI applications. This article will tell you how to use the Tkinter library to develop a GUI application with a hello world example.
Python Tkinter Hello World Example Read More »