基于QT5+MinGW的翻金币小游戏-毕业设计

上传者: 52896916 | 上传时间: 2025-06-18 11:26:48 | 文件大小: 18.08MB | 文件类型: ZIP
使用C++语言开发的基于QT5+MinGW的翻金币小游戏-毕业设计(含源码-说明文档) 规则说明 翻金币是一个简单的游戏,在翻金币场景中点击界面中的币可以进行翻转,翻转规则是币加其上下左右的币同时进行翻转(动画做了一些小延迟),胜利的条件是界面中全是金币。 实现步骤分解 由界面演示,我们知道这个界面主要就3个界面: 翻金币的主界面 选择关卡界面 翻金币场景界面 界面详述 翻金币的主界面 说明 翻金币主界面有一个菜单栏,菜单栏有一个开始菜单,开始菜单里面只有一项退出,点击退出,游戏结束。 主界面还有一个START按钮,点击START按钮,可以跳到翻金币的选择关卡界面。 其余则是背景和标题栏还有一个Label 实现步骤 创建一个MainScence类,因为需要一个菜单栏,所以选择继承QMainWindow mainScence.h 在.h文件中重写了一个paintEvent()函数,这个函数会被主动调用,无需手动调用,创建一个ChooesLevelscreen对象,这个对象用来关联跳转。 mainScence.cpp 选择关卡界面 说明 选择关卡界面也是有一个·菜单栏,其效果和实现

文件下载

资源详情

[{"title":"( 81 个子文件 18.08MB ) 基于QT5+MinGW的翻金币小游戏-毕业设计","children":[{"title":"CoinFilp-src","children":[{"title":"CoinFilp","children":[{"title":"mycoin.h <span style='color:#111;'> 677B </span>","children":null,"spread":false},{"title":"playscene.h <span style='color:#111;'> 767B </span>","children":null,"spread":false},{"title":"mypushbutton.h <span style='color:#111;'> 627B </span>","children":null,"spread":false},{"title":"dataconfig.h <span style='color:#111;'> 356B </span>","children":null,"spread":false},{"title":"chooeslevelscreen.h <span style='color:#111;'> 498B </span>","children":null,"spread":false},{"title":"mainscence.cpp <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false},{"title":"mycoin.cpp <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"OtherSceneBg.png <span style='color:#111;'> 330.71KB </span>","children":null,"spread":false},{"title":"sounds","children":[{"title":"BackButtonSound.wav <span style='color:#111;'> 20.00KB </span>","children":null,"spread":false},{"title":"TapButtonSound.wav <span style='color:#111;'> 26.03KB </span>","children":null,"spread":false},{"title":"LevelWinSound.wav <span style='color:#111;'> 198.01KB </span>","children":null,"spread":false},{"title":"ConFlipSound.wav <span style='color:#111;'> 59.98KB </span>","children":null,"spread":false}],"spread":true},{"title":"Coin0001.png <span style='color:#111;'> 22.11KB </span>","children":null,"spread":false},{"title":"BackButtonSound.wav <span style='color:#111;'> 20.00KB </span>","children":null,"spread":false},{"title":"Coin0005.png <span style='color:#111;'> 18.28KB </span>","children":null,"spread":false},{"title":"Coin0007.png <span style='color:#111;'> 21.75KB </span>","children":null,"spread":false},{"title":"TapButtonSound.wav <span style='color:#111;'> 26.03KB </span>","children":null,"spread":false},{"title":"BackButtonSelected.png <span style='color:#111;'> 19.11KB </span>","children":null,"spread":false},{"title":"PlayLevelSceneBg.png <span style='color:#111;'> 363.62KB </span>","children":null,"spread":false},{"title":"BoardNode.png <span style='color:#111;'> 17.59KB </span>","children":null,"spread":false},{"title":"LevelIcon.png <span style='color:#111;'> 21.49KB </span>","children":null,"spread":false},{"title":"Coin0003.png <span style='color:#111;'> 20.23KB </span>","children":null,"spread":false},{"title":"Coin0004.png <span style='color:#111;'> 18.11KB </span>","children":null,"spread":false},{"title":"MenuSceneStartButton.png <span style='color:#111;'> 36.79KB </span>","children":null,"spread":false},{"title":"Coin0006.png <span style='color:#111;'> 20.46KB </span>","children":null,"spread":false},{"title":"LevelWinSound.wav <span style='color:#111;'> 198.01KB </span>","children":null,"spread":false},{"title":"Coin0002.png <span style='color:#111;'> 21.45KB </span>","children":null,"spread":false},{"title":"LevelCompletedDialogBg.png <span style='color:#111;'> 60.56KB </span>","children":null,"spread":false},{"title":"MenuSceneBg.png <span style='color:#111;'> 370.53KB </span>","children":null,"spread":false},{"title":"Title.png <span style='color:#111;'> 47.55KB </span>","children":null,"spread":false},{"title":"ConFlipSound.wav <span style='color:#111;'> 59.98KB </span>","children":null,"spread":false},{"title":"Coin0008.png <span style='color:#111;'> 22.38KB </span>","children":null,"spread":false},{"title":"BackButton.png <span style='color:#111;'> 19.13KB </span>","children":null,"spread":false}],"spread":false},{"title":"mainscence.ui <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 452B </span>","children":null,"spread":false},{"title":"mypushbutton.cpp <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"dataconfig.cpp <span style='color:#111;'> 15.86KB </span>","children":null,"spread":false},{"title":"res.qrc <span style='color:#111;'> 993B </span>","children":null,"spread":false},{"title":"mainscence.h <span style='color:#111;'> 450B </span>","children":null,"spread":false},{"title":"chooeslevelscreen.cpp <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"CoinFilp.pro.user <span style='color:#111;'> 23.48KB </span>","children":null,"spread":false},{"title":"CoinFilp.pro <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"playscene.cpp <span style='color:#111;'> 7.45KB </span>","children":null,"spread":false}],"spread":false},{"title":"效果图","children":[{"title":"3.png <span style='color:#111;'> 854.21KB </span>","children":null,"spread":false},{"title":"1.png <span style='color:#111;'> 909.88KB </span>","children":null,"spread":false},{"title":"6.png <span style='color:#111;'> 2.74MB </span>","children":null,"spread":false},{"title":"5.png <span style='color:#111;'> 2.70MB </span>","children":null,"spread":false},{"title":"start.png <span style='color:#111;'> 771.47KB </span>","children":null,"spread":false},{"title":"2.png <span style='color:#111;'> 861.79KB </span>","children":null,"spread":false}],"spread":true},{"title":"build-CoinFilp-Desktop_Qt_5_9_4_MinGW_32bit-Debug","children":[{"title":"Makefile <span style='color:#111;'> 29.24KB </span>","children":null,"spread":false},{"title":"ui_mainscence.h <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"object_script.CoinFilp.Release <span style='color:#111;'> 371B </span>","children":null,"spread":false},{"title":"debug","children":[{"title":"moc_mycoin.cpp <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"chooeslevelscreen.o <span style='color:#111;'> 652.34KB </span>","children":null,"spread":false},{"title":"moc_playscene.o <span style='color:#111;'> 331.33KB </span>","children":null,"spread":false},{"title":"mainscence.o <span style='color:#111;'> 687.69KB </span>","children":null,"spread":false},{"title":"qrc_res.o <span style='color:#111;'> 1.68MB </span>","children":null,"spread":false},{"title":"moc_mainscence.cpp <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false},{"title":"qrc_res.cpp <span style='color:#111;'> 8.64MB </span>","children":null,"spread":false},{"title":"mypushbutton.o <span style='color:#111;'> 342.97KB </span>","children":null,"spread":false},{"title":"moc_dataconfig.o <span style='color:#111;'> 359.44KB </span>","children":null,"spread":false},{"title":"mycoin.o <span style='color:#111;'> 324.92KB </span>","children":null,"spread":false},{"title":"moc_dataconfig.cpp <span style='color:#111;'> 2.64KB </span>","children":null,"spread":false},{"title":"moc_playscene.cpp <span style='color:#111;'> 3.85KB </span>","children":null,"spread":false},{"title":"moc_mypushbutton.o <span style='color:#111;'> 312.94KB </span>","children":null,"spread":false},{"title":"moc_mypushbutton.cpp <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false},{"title":"playscene.o <span style='color:#111;'> 757.75KB </span>","children":null,"spread":false},{"title":"moc_chooeslevelscreen.cpp <span style='color:#111;'> 4.03KB </span>","children":null,"spread":false},{"title":"moc_chooeslevelscreen.o <span style='color:#111;'> 331.97KB </span>","children":null,"spread":false},{"title":"moc_mainscence.o <span style='color:#111;'> 303.58KB </span>","children":null,"spread":false},{"title":"main.o <span style='color:#111;'> 556.73KB </span>","children":null,"spread":false},{"title":"CoinFilp.exe <span style='color:#111;'> 6.64MB </span>","children":null,"spread":false},{"title":"dataconfig.o <span style='color:#111;'> 398.76KB </span>","children":null,"spread":false},{"title":"moc_mycoin.o <span style='color:#111;'> 412.55KB </span>","children":null,"spread":false},{"title":"moc_predefs.h <span style='color:#111;'> 9.66KB </span>","children":null,"spread":false}],"spread":false},{"title":"release","children":null,"spread":false},{"title":"Makefile.Release <span style='color:#111;'> 135.33KB </span>","children":null,"spread":false},{"title":"Makefile.Debug <span style='color:#111;'> 135.06KB </span>","children":null,"spread":false},{"title":".qmake.stash <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"object_script.CoinFilp.Debug <span style='color:#111;'> 343B </span>","children":null,"spread":false}],"spread":true},{"title":"说明文档","children":[{"title":"翻金币-说明文档.docx <span style='color:#111;'> 22.63KB </span>","children":null,"spread":false},{"title":"翻金币-说明文档.md <span style='color:#111;'> 34.63KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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