Python, PyGame game project

English typing game project#

demand analysis##

**The English typing game should have multiple interface interactions, the interface is clean and beautiful, the difficulty of the game can be adjusted, and the game information can be configured. ****There must be game scores, game time, animation effects, background music, and the highest score records for different game levels. ****Spelled English words show Chinese meaning. Support long press [backspace] to quickly delete words and letters. ****Multiple game difficulty levels allow players to focus on improving typing speed or practicing English words. **

Game start interface###

Game settings interface###

The highest record interface in game history###

Game running interface###

Game over interface###

Development environment##

Programming language###

Programming language version number
Python 3.7.1

development tools###

Tool name Tool version
PyCharm 2019.3.1

Third-party library###

Third library name version number
pygame 1.9.6
pyinstaller 4.0
PySimpleGUI 4.26.0

Third-party library description####

**pygame: ** Used to draw the running window of the English typing game, and realize the overall game animation effect.

pyinstaller: Package the project into an executable file (.exe), which can run the program in the Windows environment, without the Python environment.

**PySimpleGUI: ** Draw the overall interactive window of the game (start, settings, the highest window in history).

Game material###

Material File/Path
Game music resource/music/…
Game font resource/font/HUI.TTF
Game background image, icon resource/image/...
English four-level word text resource/en_word.txt

Project architecture overview##

Directory tree structure###

WordSprite
├─.idea
│  └─inspectionProfiles
├─bin
│  └─resource
│      ├─font
│      ├─image
│      │  └─animation
│      └─music
├─document
└─source
│    └─resource
│        ├─font
│        ├─image
│        │  └─animation
│        └─music
├─readme.md

Project directory structure diagram###

Page function diagram###

Instructions for use##

Game main interface###

Game running interface###

The game running interface will match the words that fall vertically in the game according to the words you enter on the keyboard.

Game settings interface###

The game setting interface is used to adjust the game configuration information, and the dynamic adjustment can also be called up when the game is running.

Adjust game level####

The game is divided into five levels, namely

Game level Name Word falling speed
1 Simple 0.3
2 Get started 0.5
3 Medium 1.0
4 Difficulty 1.5
5 Devil 2.0

**During the running of the game, the game health bar will gradually decrease, the words that landed will exceed the game screen, the game health bar will decrease, and the degree of the game health bar will increase as the game level increases. **

Other adjustments####

Configuration information save####

Temporary save

Temporarily save, can be used to test the game effect of different configuration information, to see if you are satisfied, if not satisfied, you can change back to the original configuration information.

Temporary save applies to the authorities. The game is valid, and replay and restart are invalid.

Save forever

Permanent save will write the game configuration information into the configuration file, which will take effect permanently.

**Note: The adjustment of the game mute state can be achieved without saving, but the sound is open every time the game is opened. **

The highest interface in game history###

The highest historical interface shows the highest historical score records of different game levels.

Game version information, about the author###

Recommended Posts

Python, PyGame game project
Python implements tic-tac-toe game
Python implements Tetris game
Python implements minesweeper game
Python implements guessing game
Python3 realizes airplane war game
python guess the word game
Python implements a guessing game
Python implements digital bomb game
Python realizes the guessing game
Python implements simple tic-tac-toe game
Python implements the brick-and-mortar game
Python simply implements the snake game
Python implements digital bomb game program
Python implements the aircraft war project
Python solves the Tower of Hanoi game
Python basic actual combat-guess the age game