OGRE小游戏


文件夹说明:   Bin:执行档文件夹,包含了图形资源、声音资源等。   Xmas:源代码文件夹   HoHoLibrary:HoHo引擎库文件   HoHoInclude:HoHo引擎头文件
资源截图
代码片段和文件信息
/* ----------------------------------------------------------------

作者:林德辉(Sea_Bug)
Email:sea_bug@gameres.com
网站:http://www.gameres.com

-----------------------------------------------------------------*/


#include “stdafx.h“
#include “Data.h“

int SCREEN_WIDTH = 640;
int SCREEN_HEIGHT = 480;
LP_FONT g_pFont = NULL;
LP_FILE_PACKAGE fp = NULL;
bool g_bIsWindowed = true;
bool g_bIsDebug = false;
long g_lGameState = GAME_MENU;

// UI
LP_BITMAPX g_pframe = NULL; // 窗体外框
LP_BITMAPX g_pClose = NULL; // 关闭窗口
LP_BITMAPX g_pSwitch = NULL; // 全屏/窗口切换
LP_BITMAPX g_pMinWindow = NULL; // 最小化窗口

LP_BITMAPX g_ptitle = NULL; // 标题
LP_BITMAPX g_ptitleAnyKey = NULL; // 标题任意按键
LP_BITMAPX g_pSelectBackground = NULL; // 选单背景
LP_BITMAPX g_pSelectMask = NULL; // 选单背景蒙板
LP_BITMAPX g_pSelecttitle = NULL; // 选单标题
LP_BITMAPX g_pSelect[MAX_TOLLGATE]; // 关卡面板
long g_lSelectPoint = 0; // 选关
LP_BITMAPX g_pStageClear = NULL; // 过关
LP_BITMAPX g_pAllComplet = NULL; // PASS
LP_BITMAPX g_pTheEnd = NULL; // PASS
LP_BITMAPX g_pCopyright = NULL; // Copyriht



tagTollGate g_TollGate[MAX_TOLLGATE]; // 关卡信息

// graphics
LP_BITMAPX g_pScene = NULL; // 场景资源
LP_BITMAPX g_pSceneBackground = NULL; // 场景资源(2层卷轴)
LP_BITMAPX g_pDead = NULL; // 死亡后场景临时变换

LP_BITMAPX g_pPlayer[MAX_Player_ACTIVE]; // 动作图片
long g_lAniState = -1;

LP_BITMAPX g_pFace[MAX_FACE]; // 表情动画

// player data
long g_lPlayerX = 300;
long g_lPlayerY = 300;
long g_lPlayerState = Player_STAND_RIGHT;

long g_lPlayerNum = 5; // 玩家的只数

bool g_bIsUnlockJump = false;
bool g_bIsJump = false;


// scene data
long g_lSceneX = 0;
long g_lSceneY = 0;
long g_lSceneWidth = 0;
long g_lSceneHeight = 0;

// object data
// 豆子
list g_listBean; // 豆子链表
LP_BITMAPX g_pBean; // 表情动画

long g_lBeanRateFollow = 0; // 豆子比率追赶
long g_lBeanRate = 0; // 豆子的比率
long g_lBeanTotal = 0; // 豆子总数
LP_BITMAPX g_pBitmapRate = NULL; // 百分号图案

// 门
list g_listDoor;
list g_listOut;

// active temp
bool g_bDyingJump = true;
long g_lDyingOffset = 0;
long g_lFallingOffset = 0;

// 渐隐效果
long g_lDissolve = 0;

LP_WEATHER g_lWeather = NULL;


// sound
LP_MUSIC_SEGMENT g_pSegmentJump = NULL;
LP_MUSIC_SEGMENT g_pSegmentEat = NULL;
LP_MUSIC_SEGMENT g_pSegmentDoor = NULL;
LP_MUSIC_SEGMENT g_pSegmentDead = NULL;
LP_MUSIC_SEGMENT g_pSegmentSelect = NULL;

LP_MUSIC_SEGMENT g_pSegment100Rate = NULL;



 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     目录          0  2005-01-09 00:27  Xmas_full

     目录          0  2005-01-06 16:36  Xmas_fullBin

     文件        882  2004-12-24 16:54  Xmas_fullBinGameRes Readme.txt

     文件     360448  2004-12-21 21:01  Xmas_fullBinHoHo_base.dll

     文件    1712315  2004-12-24 16:32  Xmas_fullBinPackage.dat

     文件        551  2005-01-06 16:36  Xmas_fullBinReadme.txt

     目录          0  2005-01-06 16:32  Xmas_fullBinXmas

     目录          0  2005-01-06 16:32  Xmas_fullBinXmasCharacter

     目录          0  2005-01-06 16:32  Xmas_fullBinXmasCharacterobject

     文件      40280  2004-12-21 17:21  Xmas_fullBinXmasCharacterobjectBean.dat

     目录          0  2005-01-06 16:32  Xmas_fullBinXmasCharacterPlayer

     文件     360162  2004-12-18 15:01  Xmas_fullBinXmasCharacterPlayerdead.dat

     文件     180084  2004-12-17 21:50  Xmas_fullBinXmasCharacterPlayerjump_left.dat

     文件     180084  2004-12-18 16:26  Xmas_fullBinXmasCharacterPlayerjump_right.dat

     文件     405320  2004-12-17 21:46  Xmas_fullBinXmasCharacterPlayerstand_left.dat

     文件     386912  2004-12-18 16:34  Xmas_fullBinXmasCharacterPlayerstand_right.dat

     文件     374142  2004-12-17 21:46  Xmas_fullBinXmasCharacterPlayerwalk_left.dat

     文件     374142  2004-12-18 16:35  Xmas_fullBinXmasCharacterPlayerwalk_right.dat

     目录          0  2005-01-06 16:32  Xmas_fullBinXmasScene

     文件    1520696  2004-12-21 21:37  Xmas_fullBinXmasScene1.bmp

     文件    6389804  2004-12-24 12:07  Xmas_fullBinXmasScene1.tga

     文件    1474616  2004-12-23 16:10  Xmas_fullBinXmasScene2.bmp

     文件   11059244  2004-12-23 16:00  Xmas_fullBinXmasScene2.tga

     文件    3369656  2004-12-21 17:23  Xmas_fullBinXmasScene3.bmp

     文件   24576044  2004-12-21 22:44  Xmas_fullBinXmasScene3.tga

     文件    3870776  2004-12-21 23:56  Xmas_fullBinXmasScene4.bmp

     文件    9830444  2004-12-22 15:49  Xmas_fullBinXmasScene4.tga

     目录          0  2005-01-06 16:32  Xmas_fullBinXmasSound

     文件      28697  1996-06-12 17:43  Xmas_fullBinXmasSound1.mid

     文件      27162  2004-12-24 16:01  Xmas_fullBinXmasSound2.mid

............此处省略115个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)