-
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
-
本地化文件,解决软件Adempiere本地化的文件
本地化文件,解决软件Adempiere本地化的文件-Localization of documents, to solve software localization Adempiere documents
- 2022-10-19 07:35:03下载
- 积分:1
-
ImageEn控件Demo,需要先安装ImageEn控件
ImageEn控件Demo,需要先安装ImageEn控件-ImageEn Control Demo, need to install control ImageEn
- 2023-04-30 20:40:03下载
- 积分:1
-
用dephi开发的幸运52,就象中央电视台的李勇的哪个节目,起编程思想很有价值
用dephi开发的幸运52,就象中央电视台的李勇的哪个节目,起编程思想很有价值-development with a lucky 52, as Central TV program in which Li Yong played a very valuable programming ideas
- 2022-03-03 05:23:29下载
- 积分:1
-
简单的通讯录 可以完成一些基本的功能 增加 删除 查询等
简单的通讯录 可以完成一些基本的功能 增加 删除 查询等-A simple address book to complete some of the basic features to increase the delete query, etc.
- 2022-12-10 02:45:03下载
- 积分:1
-
Weather procedures, based on NETCF2.0, using C# Language development, by connect...
天气预报程序,基于NETCF2.0,采用C#语言开发,通过连接免费的Webservice天气预报服务,并下载天气信息。支持定时更新。(系转载)-Weather procedures, based on NETCF2.0, using C# Language development, by connecting Webservice free weather service, and download weather information. Support regularly updated. (Department of reprint)
- 2022-03-06 11:39:08下载
- 积分:1
-
在WINCE下TCP/IP网络开发程序源码
在WINCE下TCP/IP网络开发程序源码-WINCE under the TCP/IP network development process FOSS
- 2022-04-22 04:56:00下载
- 积分:1
-
使用windows的API编程,一个小游戏,这个程序可以让你了解一些基本的API用法,对于初学者可以对照msdn来学习...
使用windows的API编程,一个小游戏,这个程序可以让你了解一些基本的API用法,对于初学者可以对照msdn来学习-Windows programming using the API, a small games, this procedure can let you know some basic API usage, for beginners to learn to control msdn
- 2022-06-03 20:42:47下载
- 积分:1
-
JBuilder study the source code CD, which includes the basic Java in every aspect...
jbuilder学习光盘的源代码,其中包括Java的基本的每个方面,从applet,application到javaBean,-JBuilder study the source code CD, which includes the basic Java in every aspect, from the applet, application of javaBean.
- 2022-08-17 09:53:25下载
- 积分:1
-
本程序是RS232通讯源代码。
本程序是rs232通讯的源代码。
- 2023-07-08 20:05:04下载
- 积分:1