**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. **
Show game configuration information
Game difficulty level
Initial HP of the game
English word size
Color of English words
Realize dynamic adjustment of game configuration information
Game level, initial HP
Word size and color
Can replace the game background image, background music
Respectively realize temporary storage of game configuration information and permanent game configuration information
Load background music (can be set to silent mode)
English words fall from top to bottom
English typing and display on the interface
Display game blood volume and game score
Support long press the back delete key to quickly delete words and letters
Realize the color highlighting and score scoring function for successful spelling of English words
In the game, the game information can be adjusted temporarily
Show authority game score information
Game difficulty level
Cumulative score
Time spent
Highest score in history
Quit and replay options
Programming language | version number |
---|---|
Python | 3.7.1 |
Tool name | Tool version |
---|---|
PyCharm | 2019.3.1 |
Third library name | version number |
---|---|
pygame | 1.9.6 |
pyinstaller | 4.0 |
PySimpleGUI | 4.26.0 |
**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).
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 |
WordSprite
├─.idea
│ └─inspectionProfiles
├─bin
│ └─resource
│ ├─font
│ ├─image
│ │ └─animation
│ └─music
├─document
└─source
│ └─resource
│ ├─font
│ ├─image
│ │ └─animation
│ └─music
├─readme.md
The game running interface will match the words that fall vertically in the game according to the words you enter on the keyboard.
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.
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. **
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 historical interface shows the highest historical score records of different game levels.
Recommended Posts