Original link: https://xiets.blog.csdn.net/article/details/131368147
Copyright Notice: Reprinting of original articles is prohibited
Pygame is a free and open source cross-platform library (supports Windows, MacOS, Linux) for developing multimedia applications such as video games using Python.
1. Introduction to the Pygame module
2. Pygame basic module
- Pygame Basic Tutorial 02: Display Window (display) and Image (Surface)
- Pygame Basic Tutorial 03: Color (Color) and Rectangular Area (Rect)
- Pygame Basic Tutorial 04: Event Handling (event): keyboard events, mouse events, window events
- Pygame Basic Tutorial 05: Image Processing (image): loading images, drawing images, saving images
- Pygame Basic Tutorial 06: Font Module (font) and Text Drawing
- Pygame Basic Tutorial 07: Drawing geometric figures (draw/gfxdraw): line segments, rectangles, polygons, ellipses, arcs
- Pygame Basic Tutorial 08: Sound Effects (mixer.Sound) and Background Music (mixer_music)
- Pygame Basic Tutorial 09: Image transformation (transform): Stretch/scale, rotate and flip images
- Pygame Basic Tutorial 10: Time Control (time) and Frame Rate (Clock)
3. Pygame basic enhancements
- Pygame Basic Tutorial 11: Sprite, Group, Collision Detection
- Pygame Basic Tutorial 12: Using Sprites to Realize Frame Animation (Animation)
- Pygame Basic Tutorial 13: Using sprites (Sprite) to implement buttons, switch buttons and check boxes
4. Pygame package release
5. Pygame project actual combat
- Python (Pygame) Game Development Project Combat: Tic Tac Toe AI Human-Machine Battle
- Python (Pygame) game development project actual combat: 2048 small game
- Python (Pygame) game development project actual combat: flying bird (Flappy Bird, pixel bird)
- Python (Pygame) Game Development Project Combat: Sokoban
- Python (Pygame) game development project actual combat: greedy snake
- Python (Pygame) Game Development Project Combat: Tetris
- Python (Pygame) Game Development Project in Action: Minesweeper
- Python (Pygame) game development project in practice: playing hamster
- Python (Pygame) game development project actual combat: aircraft war
Unable to click part, writing in progress. . .
A preview of the project effect: