Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
Dec20B 0c17664a43 | 1 year ago | |
---|---|---|
Python | 1 year ago | |
configs | 1 year ago | |
opt | 1 year ago | |
resources | 1 year ago | |
README.md | 1 year ago | |
使用兼容模式运行.cmd | 1 year ago | |
启动程序.exe | 1 year ago |
百度飞桨:AI达人创造营第三期项目
本项目是基于Paddle完成的人脸识别完成飞机大战游戏。使用QPT打包并提供exe版本。经测试可在带独立显卡的windows环境下流畅运行。
项目源码可在 .resources
文件夹下查看
点击启动程序.exe直接运行即可。
首次运行需要自动下载模型文件,请等待根据网速等待一至两分钟
AISTUDIO地址: https://aistudio.baidu.com/aistudio/projectdetail/4546387
B站演示视频:https://www.bilibili.com/video/BV1aa411g7db/?zw
本项目灵感起源于B站视频,但是类似的飞机大战视频都非常卡顿,并且需要的安装环境较为复杂。
笔者基于网络开源的素材及代码资源,重构了整个项目。
完成的功能包括:
使用PADDLE进行人脸检测
增加多种飞机及子弹,大大丰富游戏性
增加全屏炸弹及PADDLE补给
增加处理缓冲,极大优化游戏流畅度
增加敌机逐渐增强,提高难度
增加复活后无敌及排行榜实时更新
增加游戏暂停功能
使用百度文心·一格生成游戏背景及ICON
飞机大战游戏中,玩家控制飞机通过发射炮弹打掉其他飞机来赢得分数,最终分数前十名进入排行榜。
游戏使用人脸识别控制飞机移动,张嘴(一定要张大)发射全屏炸弹。
飞机与敌机相撞时,消耗一条生命。
左下角为全屏炸弹数量,右下角为生命数量,生命消耗完,游戏结束、
左上角为实时分数显示,右上角为游戏暂停按钮
游戏内分为大中小三类敌机,越高级的敌机拥有更多的血量,敌机的速度会随着游戏的进行加快、
为了增加对抗性,设置了三类补给,每间隔20秒随机出现一次补给
核心技术方案
No Description
Python Tcl Text C C++ other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》