資源簡介
小時候的經典游戲,代碼參考了github上的項目Mario-Level-1,使用pygame來實現,原項目實現了超級瑪麗的第一個小關。
在原項目的基礎上,游戲使用json文件來保存每一個關卡的數據,將數據和代碼解耦合,目前已開發4個小關,后續關卡的擴展也很方便,只需要添加json文件和地圖圖片,支持新的怪物就行。游戲還支持進入水管,到新的子地圖。

代碼片段和文件信息
import?pygame?as?pg
from?source.main?import?main
if?__name__==‘__main__‘:
????main()
????pg.quit()
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????370??2019-07-18?22:16??PythonSuperMario\.git\config
?????文件?????????73??2019-07-18?20:55??PythonSuperMario\.git\desc
?????文件????????106??2019-07-19?18:49??PythonSuperMario\.git\FETCH_HEAD
?????文件?????????23??2019-07-18?20:55??PythonSuperMario\.git\HEAD
?????文件????????478??2019-07-18?20:55??PythonSuperMario\.git\hooks\applypatch-msg.sample
?????文件????????896??2019-07-18?20:55??PythonSuperMario\.git\hooks\commit-msg.sample
?????文件???????3327??2019-07-18?20:55??PythonSuperMario\.git\hooks\fsmonitor-watchman.sample
?????文件????????189??2019-07-18?20:55??PythonSuperMario\.git\hooks\post-update.sample
?????文件????????424??2019-07-18?20:55??PythonSuperMario\.git\hooks\pre-applypatch.sample
?????文件???????1638??2019-07-18?20:55??PythonSuperMario\.git\hooks\pre-commit.sample
?????文件???????1348??2019-07-18?20:55??PythonSuperMario\.git\hooks\pre-push.sample
?????文件???????4898??2019-07-18?20:55??PythonSuperMario\.git\hooks\pre-reba
?????文件????????544??2019-07-18?20:55??PythonSuperMario\.git\hooks\pre-receive.sample
?????文件???????1492??2019-07-18?20:55??PythonSuperMario\.git\hooks\prepare-commit-msg.sample
?????文件???????3610??2019-07-18?20:55??PythonSuperMario\.git\hooks\update.sample
?????文件???????4167??2019-07-19?18:49??PythonSuperMario\.git\index
?????文件????????240??2019-07-18?20:55??PythonSuperMario\.git\info\exclude
?????文件????????486??2019-07-19?18:49??PythonSuperMario\.git\logs\HEAD
?????文件????????486??2019-07-19?18:49??PythonSuperMario\.git\logs\refs\heads\master
?????文件????????188??2019-07-18?20:55??PythonSuperMario\.git\logs\refs\remotes\origin\HEAD
?????文件????????288??2019-07-19?18:49??PythonSuperMario\.git\logs\refs\remotes\origin\master
?????文件????????147??2019-07-18?21:13??PythonSuperMario\.git\ob
?????文件??????25253??2019-07-18?21:10??PythonSuperMario\.git\ob
?????文件???????5998??2019-07-18?21:09??PythonSuperMario\.git\ob
?????文件????????148??2019-07-19?18:49??PythonSuperMario\.git\ob
?????文件??????32621??2019-07-18?21:10??PythonSuperMario\.git\ob
?????文件??????30733??2019-07-18?21:13??PythonSuperMario\.git\ob
?????文件????????156??2019-07-19?18:49??PythonSuperMario\.git\ob
?????文件????????165??2019-07-19?18:49??PythonSuperMario\.git\ob
?????文件????????168??2019-07-19?18:49??PythonSuperMario\.git\ob
............此處省略143個文件信息
- 上一篇:QT modbus串口調試程序
- 下一篇:Python零基礎10天進階班.rar
評論
共有 條評論