• 大小: 8.92M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-29
  • 语言: C/C++
  • 标签:

资源简介

吃豆人c 代码,vs2013编写,可直接运行。文档说明齐全。

资源截图

代码片段和文件信息

#include “preStatement.h“
#include “game.h“

/* 默认变量 */
const clock_t g_nInitGhoSpead = 350;
const clock_t g_nInitPlayerSpead = 200;
const int g_nMapRow = 31;
const int g_nMapCol = 28;
const int g_nPlayer = 1;
const int g_nGhost = 4;
const int g_nPean = 300;
int g_nPlayerlife = 3;

CGameMap* g_gameMap = NULL;

const int g_nFirstGhoRow = 14;
const int g_nFirstGhoCol = 12;

const int g_nPlayerRow = 23;
const int g_nPlayerCol = 13;

// 玩家已得分数
int g_nAddScore = 0;
// 玩家吃鬼分数
int g_nPlayerEatGhostScore = PlayerEATGHOSTSCORE;
int g_nPlayerEatGhostScore_show = PlayerEATGHOSTSCORE;
// 玩家吃鬼加分倍率
const float g_fMagScore = 1.5;
// 玩家被吃标志
int g_isBeEat = 0;
// 吃掉一只鬼
int g_nGhostBeEat = 0;
// 玩家吃掉豆子的数量(包括超级豆),最多300
int g_nEatPeanNum = 1;
// 超级豆被吃标志,吃一个加1
int g_nSuperPea

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-22 08:47  pacman-master\
     文件          50  2017-05-06 13:05  pacman-master\.gitignore
     目录           0  2018-08-22 08:44  pacman-master\Bin\
     文件       32256  2017-05-06 13:05  pacman-master\Bin\pacMan-吃豆人.exe
     文件        1178  2017-05-06 13:05  pacman-master\README.md
     目录           0  2018-08-22 08:44  pacman-master\Release\
     文件       32256  2018-08-22 08:44  pacman-master\Release\level_0x02.exe
     文件      437248  2018-08-22 08:44  pacman-master\Release\level_0x02.pdb
     目录           0  2018-08-22 08:44  pacman-master\level_0x02\
     目录           0  2018-08-22 08:44  pacman-master\level_0x02\Release\
     文件       11611  2018-08-22 08:44  pacman-master\level_0x02\Release\game.obj
     文件      112966  2018-08-22 08:44  pacman-master\level_0x02\Release\gameCtrl.obj
     文件       73743  2018-08-22 08:44  pacman-master\level_0x02\Release\gameElement.obj
     文件       74486  2018-08-22 08:44  pacman-master\level_0x02\Release\gameMap.obj
     文件       85684  2018-08-22 08:44  pacman-master\level_0x02\Release\gameUI.obj
     文件       65550  2018-08-22 08:44  pacman-master\level_0x02\Release\ghoHome.obj
     文件       69315  2018-08-22 08:44  pacman-master\level_0x02\Release\ghost.obj
     文件       61119  2018-08-22 08:44  pacman-master\level_0x02\Release\iGameElement.obj
     文件        2633  2018-08-22 08:44  pacman-master\level_0x02\Release\level_0x02.log
     目录           0  2018-08-22 08:44  pacman-master\level_0x02\Release\level_0x02.tlog\
     文件      254282  2018-08-22 08:44  pacman-master\level_0x02\Release\level_0x02.tlog\CL.read.1.tlog
     文件        7652  2018-08-22 08:44  pacman-master\level_0x02\Release\level_0x02.tlog\CL.write.1.tlog
     文件       11924  2018-08-22 08:44  pacman-master\level_0x02\Release\level_0x02.tlog\cl.command.1.tlog
     文件         180  2018-08-22 08:44  pacman-master\level_0x02\Release\level_0x02.tlog\level_0x02.lastbuildstate
     文件        3708  2018-08-22 08:44  pacman-master\level_0x02\Release\level_0x02.tlog\link.command.1.tlog
     文件        6976  2018-08-22 08:44  pacman-master\level_0x02\Release\level_0x02.tlog\link.read.1.tlog
     文件        2214  2018-08-22 08:44  pacman-master\level_0x02\Release\level_0x02.tlog\link.write.1.tlog
     文件       69974  2018-08-22 08:44  pacman-master\level_0x02\Release\moveObj.obj
     文件       61760  2018-08-22 08:44  pacman-master\level_0x02\Release\pacMan.obj
     文件       66019  2018-08-22 08:44  pacman-master\level_0x02\Release\pean.obj
     文件       68807  2018-08-22 08:44  pacman-master\level_0x02\Release\player.obj
............此处省略56个文件信息

评论

共有 条评论