资源简介


资源截图

代码片段和文件信息

/*
程序名称:
贪吃蛇大作战

简介:
简单模拟了游戏 贪吃蛇大作战
程序运行中可以通过 ESC 直接退出
左键或右键可以加速移动,加速会消耗长度

环境:
VS2019 + EasyX_20190529(beta)

时间:
2019.8.6

作者:
Teternity(QQ:1926594835)

版权:
作者原创,无抄袭,不涉及版权问题,仅用作学习
*/


////////// 头文件 //////////
#include 
#include 
#include 
#include 
#include 
#pragma comment( lib “MSIMG32.LIB“)


////////// 窗口大小 //////////
const short ScreenWidth = 640;
const short ScreenHeight = 480;


////////// 全局变量 //////////
long ret = 0;
MOUSEMSG msg;
const short gap = 20;
const short xSide = ScreenWidth / 2 + gap;
const short ySide = ScreenHeight / 2 + gap;
IMAGE* imgMap = new IMAGE(ScreenWidth * 4 ScreenHeight * 4);
const double PI = 3.1415926;
const short nodeSize = 17;
const sh

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-12-09 13:58  .vs\
     目录           0  2019-12-09 13:58  .vs\ConsoleApplication2\
     目录           0  2019-12-09 14:09  .vs\ConsoleApplication2\v16\
     文件       30720  2019-12-09 14:09  .vs\ConsoleApplication2\v16\.suo
     文件    37974016  2019-12-09 14:09  .vs\ConsoleApplication2\v16\Browse.VC.db
     目录           0  2019-12-09 13:58  .vs\ConsoleApplication2\v16\ipch\
     目录           0  2019-12-09 13:58  .vs\ConsoleApplication2\v16\ipch\AutoPCH\
     目录           0  2019-12-09 14:07  .vs\ConsoleApplication2\v16\ipch\AutoPCH\e703300f06579110\
     文件    44564480  2019-12-09 14:07  .vs\ConsoleApplication2\v16\ipch\AutoPCH\e703300f06579110\CONSOLEAPPLICATION2.ipch
     目录           0  2019-12-09 14:08  ConsoleApplication2\
     文件       19448  2019-12-09 14:08  ConsoleApplication2\ConsoleApplication2.cpp
     文件        7439  2019-12-09 14:02  ConsoleApplication2\ConsoleApplication2.vcxproj
     文件         964  2019-12-09 13:58  ConsoleApplication2\ConsoleApplication2.vcxproj.filters
     文件         168  2019-12-09 13:58  ConsoleApplication2\ConsoleApplication2.vcxproj.user
     目录           0  2019-12-09 14:08  ConsoleApplication2\Debug\
     目录           0  2019-12-09 14:08  ConsoleApplication2\Debug\ConsoleA.969E2F80.tlog\
     文件         900  2019-12-09 14:08  ConsoleApplication2\Debug\ConsoleA.969E2F80.tlog\CL.command.1.tlog
     文件       21924  2019-12-09 14:08  ConsoleApplication2\Debug\ConsoleA.969E2F80.tlog\CL.read.1.tlog
     文件         792  2019-12-09 14:08  ConsoleApplication2\Debug\ConsoleA.969E2F80.tlog\CL.write.1.tlog
     文件         223  2019-12-09 14:08  ConsoleApplication2\Debug\ConsoleA.969E2F80.tlog\ConsoleApplication2.lastbuildstate
     文件        1480  2019-12-09 14:08  ConsoleApplication2\Debug\ConsoleA.969E2F80.tlog\link.command.1.tlog
     文件        2958  2019-12-09 14:08  ConsoleApplication2\Debug\ConsoleA.969E2F80.tlog\link.read.1.tlog
     文件         740  2019-12-09 14:08  ConsoleApplication2\Debug\ConsoleA.969E2F80.tlog\link.write.1.tlog
     文件         150  2019-12-09 14:08  ConsoleApplication2\Debug\ConsoleApplication2.log
     文件       93751  2019-12-09 14:08  ConsoleApplication2\Debug\ConsoleApplication2.obj
     文件      265216  2019-12-09 14:08  ConsoleApplication2\Debug\vc142.idb
     文件      167936  2019-12-09 14:08  ConsoleApplication2\Debug\vc142.pdb
     文件        1478  2019-12-09 13:58  ConsoleApplication2.sln
     目录           0  2019-12-09 14:08  Debug\
     文件      139776  2019-12-09 14:08  Debug\ConsoleApplication2.exe
     文件      897960  2019-12-09 14:08  Debug\ConsoleApplication2.ilk
............此处省略1个文件信息

评论

共有 条评论