资源简介
文件夹说明:
\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_full\Bin
文件 882 2004-12-24 16:54 Xmas_full\Bin\GameRes Readme.txt
文件 360448 2004-12-21 21:01 Xmas_full\Bin\HoHo_ba
文件 1712315 2004-12-24 16:32 Xmas_full\Bin\Package.dat
文件 551 2005-01-06 16:36 Xmas_full\Bin\Readme.txt
目录 0 2005-01-06 16:32 Xmas_full\Bin\Xmas
目录 0 2005-01-06 16:32 Xmas_full\Bin\Xmas\Character
目录 0 2005-01-06 16:32 Xmas_full\Bin\Xmas\Character\ob
文件 40280 2004-12-21 17:21 Xmas_full\Bin\Xmas\Character\ob
目录 0 2005-01-06 16:32 Xmas_full\Bin\Xmas\Character\Pla
文件 360162 2004-12-18 15:01 Xmas_full\Bin\Xmas\Character\Pla
文件 180084 2004-12-17 21:50 Xmas_full\Bin\Xmas\Character\Pla
文件 180084 2004-12-18 16:26 Xmas_full\Bin\Xmas\Character\Pla
文件 405320 2004-12-17 21:46 Xmas_full\Bin\Xmas\Character\Pla
文件 386912 2004-12-18 16:34 Xmas_full\Bin\Xmas\Character\Pla
文件 374142 2004-12-17 21:46 Xmas_full\Bin\Xmas\Character\Pla
文件 374142 2004-12-18 16:35 Xmas_full\Bin\Xmas\Character\Pla
目录 0 2005-01-06 16:32 Xmas_full\Bin\Xmas\Scene
文件 1520696 2004-12-21 21:37 Xmas_full\Bin\Xmas\Scene\01.bmp
文件 6389804 2004-12-24 12:07 Xmas_full\Bin\Xmas\Scene\01.tga
文件 1474616 2004-12-23 16:10 Xmas_full\Bin\Xmas\Scene\02.bmp
文件 11059244 2004-12-23 16:00 Xmas_full\Bin\Xmas\Scene\02.tga
文件 3369656 2004-12-21 17:23 Xmas_full\Bin\Xmas\Scene\03.bmp
文件 24576044 2004-12-21 22:44 Xmas_full\Bin\Xmas\Scene\03.tga
文件 3870776 2004-12-21 23:56 Xmas_full\Bin\Xmas\Scene\04.bmp
文件 9830444 2004-12-22 15:49 Xmas_full\Bin\Xmas\Scene\04.tga
目录 0 2005-01-06 16:32 Xmas_full\Bin\Xmas\Sound
文件 28697 1996-06-12 17:43 Xmas_full\Bin\Xmas\Sound\01.mid
文件 27162 2004-12-24 16:01 Xmas_full\Bin\Xmas\Sound\02.mid
............此处省略115个文件信息
评论
共有 条评论