"Cross Fire" is a game write in pygame
the plane:
●↑:turn up
●↓: turn down
●←: turn right
●→: turn left
the dragon:
Press the keyboard B
If a dragon hits a bullet,Dragon will die.If dragons encounter enemies,The enemy will die.
Press the keyboard Esc can exit the game
pip install pygame
Note that the code should be saved in the same path as the picture and music, or pygame will report an error
step1:code is saved in the same path as the picture and music.
step2:Run the code
Next you can play the game!!!
Press the keyboard Esc,exit the game.