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

代碼片段和文件信息
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個文件信息
評論
共有 條評論