-
QT编写的C++贪吃蛇小游戏
游戏通过按键控制
部分代码:
#include "gamewidget.h"
#define ROW 13
#define COL 16
#define UP 0
#define DOWN 1
#define LEFT 2
#define RIGHT 3
GameWidget::GameWidget(QWidget *parent)
:QWidget(parent)
{
this->setAutoFillBackground(true);//覆盖
this->resize(480,270);
this->setWindowIcon(QIcon("img/icon.jpg"));
this->setWindowTitle("贪吃蛇");
QPalette palette;
palette.setBrush(QPalette::Background,QBrush((QPixmap)"img/bjt.png"));
this->setPalette(palette);
//按扭区
leftbtn=new QPushButton(this);
leftbtn->setIcon((QIcon)"img/zuo.png");
leftbtn->setIconSize(QSize(40,40));
leftbtn->setGeometry(QRect(340,180,40,40));
leftbtn->setFlat(true);
rightbtn=new QPushButton(this);
rightbtn->setIcon((QIcon)"img/you.png");
rightbtn->setIconSize(QSize(40,40));
rightbtn->setGeometry(QRect(430,180,40,40));
rightbtn->setFlat(true
- 2022-03-21 19:09:00下载
- 积分:1
-
ssd qp4 moves de map according to the city selected
ssd qp4 moves de map according to the city selected
- 2022-01-25 22:44:31下载
- 积分:1
-
动态链接库准备过程。静态库与动态库…
动态链接库程序的编写。静态库与动态库的区别,以及调用程序在链接静态库和动态库时的区别。如何利用工具查看动态链接库输出的函数,Depends工具的使用,C++编译器名字改编技术对动态链接库输出函数的影响,extern "C"的用法,利用模块定义文件来解决C++名字改编的问题。用typedef定义指向函数的指针类型,如何获得动态连接库里的函数的指针。-Dynamic link library preparation process. Static library and dynamic library distinction, and call procedures in the static library and dynamic link library when the distinction. How to use tool to view a dynamic link library function of the output, Depends tools, C++ Compiler technology to adapt the name of a dynamic link library function of the impact of the output, extern
- 2022-01-31 13:40:04下载
- 积分:1
-
当你发布软件;商品;网站之后,是否想得到用户的评价反馈以及改进意见,本软件能让用户在一秒钟之间填完一张反馈表,举手之劳,用户何乐而不为,大大地增加了您的反馈率,...
当你发布软件;商品;网站之后,是否想得到用户的评价反馈以及改进意见,本软件能让用户在一秒钟之间填完一张反馈表,举手之劳,用户何乐而不为,大大地增加了您的反馈率,帮你准确地掌握用户喜好,尤其是 共享收费软件更需如此,本软件是免费软件,有delphi7源代码,无版权,随您任意改动利用发布,你想怎样就怎样。-When you release software goods site, whether the user wants the evaluation of feedback and improvements, the software allows users to fill out a feedback between a second form, would require little effort, the user why not greatly increase the rate of your feedback to help you accurately the user preferences, in particular the more necessary to share the billing software so that this software is free software, there is delphi7 source code, no copyright, with any changes to the use of your release, you wonder how the how.
- 2022-08-13 17:47:45下载
- 积分:1
-
电力系统N4F规约
电力系统N4F规约-power system N4F Statute
- 2022-01-26 04:35:38下载
- 积分:1
-
北大版本的数据结构教程对应的源代码,其中包括链表,树,图等经典数据结构和一些算法。...
北大版本的数据结构教程对应的源代码,其中包括链表,树,图等经典数据结构和一些算法。-North version of the data structure corresponding to the source code tutorials, including linked lists, trees, and other classic graph data structure and some algorithms.
- 2022-07-07 04:18:26下载
- 积分:1
-
俄罗斯方块游戏
提示: 您将赚取积分 (0-20) 基于您的源代码和说明的质量。质量低、 重复的代码或穷人所述将被删除。
- 2022-08-19 16:35:18下载
- 积分:1
-
介绍了工业控制Window组态软件的通信
介绍了工业控制Window组态软件的通信-introduced the Industrial Control Software Configuration Window communications
- 2022-02-04 17:58:13下载
- 积分:1
-
its a whole of documents related to energy efficient routing protocols
its a whole of documents related to energy efficient routing protocols
- 2022-01-31 10:49:29下载
- 积分:1
-
网络数据包捕获,把某一IP当作源IP,然后就可以对其进行分析...
网络数据包捕获,把某一IP当作源IP,然后就可以对其进行分析 -Capture network packets, and IP as a source IP, and then will be able to analyze the
- 2022-03-05 17:41:15下载
- 积分:1