-
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
-
CP1252字库文件,BMP格式,由SetFont Visual Basic程序产生。
CP1252字库文件,BMP格式,由SetFont Visual Basic程序产生。-CP1252 font files, BMP format, by SetFont Visual Basic procedures.
- 2022-05-09 14:05:54下载
- 积分:1
-
Delphi资源文件生成工具 我经常要在程序中加入许多资源,比如:声音、位图、光标等,这样可以使自己 软件更具特色。可以自己建立一个.RC的文件,然后再用Del...
Delphi资源文件生成工具 我经常要在程序中加入许多资源,比如:声音、位图、光标等,这样可以使自己 软件更具特色。可以自己建立一个.RC的文件,然后再用DelphiBinBrcc32.EXE来 编译生成一个.RES的文件,有了这个文件才能把资源编译到软件中去。 可是如果要加入一大批资源,要加入30个位图和20个光标的话,就要在.RC文件中一 行行加入要用的资源,比较麻烦。我是个懒人,所以自已写了这个能自动批量帮你完 成这个任务的工具,可以非常方便的生成.RES资源文件。 注意:由于Borland的Brcc32.EXE不能识别包含有空格和汉字的路径,所以你的资源来 源路径和保存路径不要带有空格和汉字,否则不能建立.RES的文件。-Delphi resources to generate tool I often join in the proceedings of many resources, for example : voice, bitmaps, cursors, etc., can make more software features. One can establish their own. RC paper, and then spend the Delphi bin Brcc32.EXE to build a generation. RES document, the document can have the resources to build software. But if a large number of resources to join, to join the 30-bit map and the cursor 20, then we should. RC paper lines to join with the resources, and trouble. I was lazy, so own writing this volume will automatically help you complete this task tool, it is easy generation. RES resource files. Note : Due to Borland"s Brcc32.EXE not include
- 2022-02-11 10:57:06下载
- 积分:1
-
讲讲自己学习RSA中的实践过程,已经对RSA熟悉的看家就不用在此浪费时间了。...
讲讲自己学习RSA中的实践过程,已经对RSA熟悉的看家就不用在此浪费时间了。-the study process of RSA.
- 2022-03-15 08:06:06下载
- 积分:1
-
与联机帮助源代码样本和微软Visual CPP微软基础…
with Online Help Source Code Samples and Microsoft Visual CPP Microsoft Foundation Classes (MFC) FAQ V4.0
- 2022-09-10 11:15:04下载
- 积分:1
-
一个模拟银行和超市的业务
一个模拟银行和超市的业务-顾客队列服务模拟系统,用了Java的多任务和多线程-a simulation of banks and supermarkets in the business-customer service cohort simulation system, using a Java multi-tasking and multi-threaded
- 2023-01-22 10:25:04下载
- 积分:1
-
A site on the banks of a small project development, administrators and users in...
一个有关于银行站点的小项目开发,管理员和用户可以在权限范围内对自己的信息进行相关操作-A site on the banks of a small project development, administrators and users in the purview of their information-related operations
- 2022-03-20 14:32:03下载
- 积分:1
-
SelfDelete.rar,运行后自动销毁的程序,欢迎下载
SelfDelete.rar,运行后自动销毁的程序,欢迎下载-SelfDelete.rar, run the self-destruct after the procedure, please download! !
- 2022-02-04 12:15:21下载
- 积分:1
-
Hello world in C
Hello world in C-- for Windows.
- 2022-01-27 10:25:27下载
- 积分:1
-
这是一个用c++写的一个加法,减法,乘法,除法!一体的程序!有些地方还有些不足!清见量! 孤独々浪献上!...
这是一个用c++写的一个加法,减法,乘法,除法!一体的程序!有些地方还有些不足!清见量! 孤独々浪献上!-This a use of a write c addition, subtraction, multiplication, division! The integration process! Some places also have some inadequacies! Volume- see! Other partners waves of loneliness!
- 2022-07-10 17:47:21下载
- 积分:1