⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gamemain.c

📁 SPG290 SD卡源程序 是一个基于game开发的嵌入式的平台 ,是sunplus公司推出的32bit平台, 该程序是在SPG290上读写SD卡的程序
💻 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 + -