-
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
-
作者:邵天英 网络流量即时监视。V1.2 本软件运行环境为win2000/NT/XP 无须安装,界面很漂亮。 以线柱的形式即时显示当前的网络流量。 可以查看非常...
作者:邵天英 网络流量即时监视。V1.2 本软件运行环境为win2000/NT/XP 无须安装,界面很漂亮。 以线柱的形式即时显示当前的网络流量。 可以查看非常详细的网络配置情况,供您参考。 快捷键为 Ctrl + F12 可以动态显示进,出,总的流量,让你 对当前的网络情况了如直掌。 做为一款系统监视软件,我想他将成为你的好帮手。 可以出售代码。 可以按照你的要求改进功能。 E-Mail: shaotianying0812@sina.com tianying@student.dlut.edu.cn 有任何问题可以与我联系!-Author : Shao-day surveillance network traffic immediately. The V1.2 software operating environment for win2000/NT/XP not required to install, interface and very pretty. Line column to the form shown in the current network traffic. Can View very detailed network configuration, for your reference. Ctrl keys to F12 can be dynamic display of entry, exit, the total flow and let you on the current situation of the network as a direct charge. As a new system monitoring software, I think he will become a good helper you. Code can be sold. According to your request enhancements. E-Mail : shaotianying0812@sina.com tianying@student.dlut.edu.cn have any questions can contact me!
- 2023-08-04 20:10:03下载
- 积分:1
-
3D小场景,比较不错,有点cs的感觉。值得大家参考借鉴。
3D小场景,比较不错,有点cs的感觉。值得大家参考借鉴。-3D small scene, quite good, a little cs feeling. Worthy of our reference reference.
- 2022-12-27 00:50:03下载
- 积分:1
-
这是一款定时器软件,通过实际工程应用,可以精确到毫秒
这是一本很好的书.讲的是信息学. 是学电子通讯的基础.-This is a very good book. Information about the study. Science is the basis of electronic communications.
- 2022-05-16 19:41:04下载
- 积分:1
-
matlab和vc++编程的例子,用到matcom进行文件的转换
matlab和vc++编程的例子,用到matcom进行文件的转换-matlab and vc++ programming example files used in the conversion matcom
- 2022-01-25 14:30:07下载
- 积分:1
-
use com to read/write excel files
windows下通过com服务读写excel的例子-use com to read/write excel files
- 2022-09-22 00:30:02下载
- 积分:1
-
peinfo,是一个不错的软件,希望可以给你们启发
peinfo,是一个不错的软件,希望可以给你们启发-peinfo, is a good software, hope that we can give you inspiration
- 2022-11-13 21:55:04下载
- 积分:1
-
市面上很少的石器时代服务端2.0源代码,编译后就是大家朝思暮想的石器时代2.0服务端!...
市面上很少的石器时代服务端2.0源代码,编译后就是大家朝思暮想的石器时代2.0服务端!-Very few services available in the market end of the Stone Age 2.0 source code is compiled朝思暮想U.S. side of the Stone Age 2.0 services!
- 2022-08-12 00:11:05下载
- 积分:1
-
VC++获取WinNT_Win2k当前用户名和密码
VC++获取WinNT_Win2k当前用户名和密码-VC access WinNT_Win2k current user name and password
- 2023-01-05 01:20:03下载
- 积分:1
-
随机抽人源码
本人java小白,闲来无事做了这样一个比较水的小程序,面向对象基本没用,就是想试试,自己也不是软件工程专业的的,喜欢就看看,不喜欢也不强求,有永久拿走吧。
- 2023-08-23 05:30:04下载
- 积分:1