資源簡介
文件夾說明:
\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個文件信息
評論
共有 條評論