猫史档案馆


【Python作品分享】马里奥跑酷奥里给!【作品秀】

用户:yuchensamayuchensama查看:1 回复:4 评论:1 创建时间:2021-04-09T20:53:16


【作品展示】

center_image

 

【作品介绍】

简单的一个马里奥跑酷W/D/S/A控制

网上教程做的也做了蛮久的希望能玩玩

 

【作品源代码】

#!/usr/bin/env python
__author__ = 'justinarmstrong'

"""
This is an attempt to recreate the first level of
Super Mario Bros for the NES.
"""

import sys
import pygame as pg
from data.main import main
import cProfile


if __name__=='__main__':
    main()
    pg.quit()
    sys.exit()

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
云游box3der尖头叉子云游box3der尖头叉子

你喵谁呢,而且这些代码我数了数才14行,14行的代码能干嘛!而且打出14行代码都说做了蛮久的

点赞0


评论


云游box3der尖头叉子云游box3der尖头叉子

的确可以飞啊

点赞0


评论


constructconstruct

为啥不能运行?

点赞0


评论


mornwindmornwind

本地资源也搞一个

data.main 应该是你的本地模块

 

点赞0


评论