91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.82MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2024-01-26
  • 語言: Python
  • 標簽: python??pygame??

資源簡介

飛機大戰原始版本比較簡單,只有一種敵機。 增強版本在這個基礎上增加了下面功能 支持三種類型的敵機 支持敵機發射子彈 添加飛機的武器類型(炸彈,同時發射多行子彈) 敵機可以從左邊,上方和右邊三個方向出現 支持飛機有多條生命 添加道具獲取(可以獲取炸彈,和增強子彈) 編譯環境 python3.7 + pygame1.9

資源截圖

代碼片段和文件信息

#?-*-?coding:?utf-8?-*-
“““
Created?on?Wed?Feb?13?15:45:00?2019

@author:?marble_xu
“““

#?screen?size?
SCREEN_WIDTH?=?480
SCREEN_HEIGHT?=?640

frame_RATE?=?60
#?enemy?or?hero?image?change?frequency?of?tick?unit
ANIMATE_CYCLE?=?30

#########?Game?Difficulty?Setting?#########

#?enemy?plane?appear?in?y?range?(0?ENEMY_APPEAR_HEIGHT)?when?come?from?left?or?right?side
#?easy:SCREEN_HEIGHT//3?hard:SCREEN_HEIGHT//2?dead:(SCREEN_HEIGHT*2//3)
ENEMY_APPEAR_HEIGHT?=?(SCREEN_HEIGHT//3)

#?create?enemy?and?gift?frequency?of?tick?unit
#?easy:60?hard:30
CREATE_CYCLE?=?60

#?hero?shoot?frequency?of?tick?unit
#?easy:10?hard:15?dead:30
SHOOT_CYCLE?=?15
#?easy?<=?5?hard:?(68)
SHOOT_SPEED?=?8

#?enemy?shoot?frequency?of?tick?unit
#?easy:120?hard:90?dead:60
ENEMY_SHOOT_CYCLE?=?120
#?ENEMY_SHOOT_SPEED?easy:1?hard:2?dead?=?3
ENEMY_SHOOT_SPEED?=?2

#########?End?of?Game?Difficulty?Setting?#########

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-02-17?10:05??PythonShootGame-master\
?????文件?????????975??2019-02-17?10:05??PythonShootGame-master\README.md
?????文件?????????900??2019-02-17?10:05??PythonShootGame-master\config.py
?????目錄???????????0??2019-02-17?10:05??PythonShootGame-master\demo\
?????文件??????190212??2019-02-17?10:05??PythonShootGame-master\demo\screenshot1.png
?????文件???????11819??2019-02-17?10:05??PythonShootGame-master\gameRole.py
?????文件????????5529??2019-02-17?10:05??PythonShootGame-master\resource.py
?????目錄???????????0??2019-02-17?10:05??PythonShootGame-master\resource\
?????目錄???????????0??2019-02-17?10:05??PythonShootGame-master\resource\image\
?????文件???????33518??2019-02-17?10:05??PythonShootGame-master\resource\image\background.png
?????文件???????20682??2019-02-17?10:05??PythonShootGame-master\resource\image\gameover.png
?????文件????????3388??2019-02-17?10:05??PythonShootGame-master\resource\image\shoot.pack
?????文件??????463797??2019-02-17?10:05??PythonShootGame-master\resource\image\shoot.png
?????目錄???????????0??2019-02-17?10:05??PythonShootGame-master\resource\sound\
?????文件????????8108??2019-02-17?10:05??PythonShootGame-master\resource\sound\bullet.wav
?????文件???????17900??2019-02-17?10:05??PythonShootGame-master\resource\sound\enemy1_down.wav
?????文件???????14444??2019-02-17?10:05??PythonShootGame-master\resource\sound\enemy2_down.wav
?????文件???????71468??2019-02-17?10:05??PythonShootGame-master\resource\sound\enemy3_down.wav
?????文件?????1087532??2019-02-17?10:05??PythonShootGame-master\resource\sound\game_music.wav
?????文件???????44972??2019-02-17?10:05??PythonShootGame-master\resource\sound\game_over.wav
?????文件???????86108??2019-02-17?10:05??PythonShootGame-master\resource\sound\get_bomb.wav
?????文件??????334140??2019-02-17?10:05??PythonShootGame-master\resource\sound\use_bomb.wav
?????文件????????6755??2019-02-17?10:05??PythonShootGame-master\shooter.py

評論

共有 條評論