?? gamemain.c
字號:
/******************************************************************************
*
* The information contained herein is the exclusive property of
* Sunplus Technology Co. And shall not be distributed, reproduced,
* or disclosed in whole in part without prior written permission.
*
* (C) COPYRIGHT 2005 SUNPLUS TECHNOLOGY CO.
* ALL RIGHTS RESERVED
*
* The entire notice above must be reproduced on all authorized copies.
*
*****************************************************************************/
/******************************************************************************
* Filename: GameMain.c
* Author: Robin.xjliu (eMail: xjliu@sunplus.com)
* Tel: 00885-028-87848688-5884
* Date: 2005-11-15
* Description: Benthal World game main
* Reference:
* Version history:
*-----------------------------------------------------------------------------
* Version YYYY-MM-DD-INDEX Modified By Description
* 1.0.0 2005-11-15 xjliu Create
*
*****************************************************************************/
#include "Include/GameMain.h"
#include "Include/GameMP4.h"
//#include "Include/Game_LCD.h"
extern U32 old_game_time, game_time;
extern U8 g_nText3Mode;
extern GAMESTATE BW_Play(void);
U8 g_nKeyCnt;
/**
* BW_Main - Benthal World game main function
*/
void BW_Main(void)
{
GAMESTATE nGameState;
InitTimer();
nGameState = BW_INIT;
old_game_time = 0;
game_time = 0;
while(1)
{
//Check State
switch(nGameState)
{
case BW_INIT:
g_bTextScrollFlag = false;
nGameState = BW_MP4;
break;
case BW_PRELUDE:
//nGameState = BW_Prelude();
break;
case BW_MP4:
nGameState = BW_PlayMP4();
break;
case BW_PLAY:
//nGameState = BW_Play();
break;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -