资源简介
小时候的经典游戏,代码参考了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
相关资源
- python+ selenium教程
- PycURL(Windows7/Win32)Python2.7安装包 P
- 英文原版-Scientific Computing with Python
- 7.图像风格迁移 基于深度学习 pyt
- 基于Python的学生管理系统
- A Byte of Python(简明Python教程)(第
- Python实例174946
- Python 人脸识别
- Python 人事管理系统
- 基于python-flask的个人博客系统
- 计算机视觉应用开发流程
- python 调用sftp断点续传文件
- python socket游戏
- 基于Python爬虫爬取天气预报信息
- python函数编程和讲解
- Python开发的个人博客
- 基于python的三层神经网络模型搭建
- python实现自动操作windows应用
- python人脸识别(opencv)
- python 绘图(方形、线条、圆形)
- python疫情卡UN管控
- python 连连看小游戏源码
- 基于PyQt5的视频播放器设计
- 一个简单的python爬虫
- csv文件行列转换python实现代码
- Python操作Mysql教程手册
- Python Machine Learning Case Studies
- python获取硬件信息
- 量化交易(附python常见函数的使用方
- python 名字用字排行
评论
共有 条评论