【Python小游戏】用Python编写小游戏FlappyBird

上传者: 41959920 | 上传时间: 2021-05-03 09:01:50 | 文件大小: 6.09MB | 文件类型: ZIP
本项目是用Python实现的一个小游戏Flappy Bird,该游戏是一款玩家要在游戏中尽可能长地维持小鸟生命的游戏。小鸟不断向前飞行,会遇到一系列高低不同的管道,管道将小鸟通过的高度限制在特定的范围内。小鸟由于重力会自动掉落到地面,所以玩家需要不断操作使小鸟进行Flap,躲避管道和地面,游戏分数由小鸟成功通过多少个管道障碍物来衡量。如果小鸟撞到地面或者管道,它就会死亡并结束游戏。详细情况可以参考我的博客解析。

文件下载

资源详情

[{"title":"( 32 个子文件 6.09MB ) 【Python小游戏】用Python编写小游戏FlappyBird","children":[{"title":"MRL-FlappyBird-master","children":[{"title":"Flappy_Bird_Env.py <span style='color:#111;'> 11.53KB </span>","children":null,"spread":false},{"title":"assets","children":[{"title":"audio","children":[{"title":"hit.ogg <span style='color:#111;'> 15.30KB </span>","children":null,"spread":false},{"title":"point.ogg <span style='color:#111;'> 12.92KB </span>","children":null,"spread":false},{"title":"wing.ogg <span style='color:#111;'> 7.55KB </span>","children":null,"spread":false},{"title":"hit.wav <span style='color:#111;'> 94.33KB </span>","children":null,"spread":false},{"title":"wing.wav <span style='color:#111;'> 29.20KB </span>","children":null,"spread":false},{"title":"die.wav <span style='color:#111;'> 190.33KB </span>","children":null,"spread":false},{"title":"swoosh.ogg <span style='color:#111;'> 13.38KB </span>","children":null,"spread":false},{"title":"die.ogg <span style='color:#111;'> 17.07KB </span>","children":null,"spread":false},{"title":"point.wav <span style='color:#111;'> 173.33KB </span>","children":null,"spread":false},{"title":"swoosh.wav <span style='color:#111;'> 346.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"sprites","children":[{"title":"2.png <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"9.png <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"3.png <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"5.png <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"8.png <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"base.png <span style='color:#111;'> 664B </span>","children":null,"spread":false},{"title":"6.png <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"redbird-upflap.png <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"redbird-midflap.png <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"1.png <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"0.png <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"redbird-downflap.png <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"pipe-green.png <span style='color:#111;'> 4.92KB </span>","children":null,"spread":false},{"title":"4.png <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false},{"title":"background-black.png <span style='color:#111;'> 3.94KB </span>","children":null,"spread":false},{"title":"7.png <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"demo","children":[{"title":"20210502_184743.gif <span style='color:#111;'> 832.34KB </span>","children":null,"spread":false},{"title":"20210502_211029.gif <span style='color:#111;'> 911.72KB </span>","children":null,"spread":false},{"title":"20210502_212711.gif <span style='color:#111;'> 3.82MB </span>","children":null,"spread":false},{"title":"20210502_164334.gif <span style='color:#111;'> 102.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"flappy_bird_utils.py <span style='color:#111;'> 3.95KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明