Skip to content

linux4cn/Cross-Fire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cross-Fire

"Cross Fire" is a game write in pygame

Game manipulation

How to play?

the plane:  
●↑:turn up  
●↓: turn down  
●←: turn right  
●→: turn left  
the dragon:  
Press the keyboard B  
If a dragon hits a bulletDragon will die.If dragons encounter enemiesThe enemy will die. 
Press the keyboard Esc can exit the game  

install import

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

Example

step1:code saved in the same path as the picture and music.
step2:Run the code
image Next you can play the game!!!
image Press the keyboard Esc,exit the game.
image

About

"Cross Fire" is a game write in pygame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages