Exemple #1
0
//================================================
//コンティニュー画面
//================================================
void DrawContinue()
{
	g_Score = 0;
	g_gamecounter = 0;
	
	model.Initialize();
	camera.Initialize();
	
	player.Initialize();
	
	menu.Initialize();
	//pause.Initialize();
	//tuto_menu.Initialize();
	
	window.Initialize();
	
	for(int i = 0;i < ENEMY_NUM;i++)
	{
		enemy[i].Initialize();
	}
	
	boss.Initialize();
	
	/*初期座標等セット*/
	player.SetPosition(200, 400);
	
	//--------------------------------
	//テクスチャ読み込み
	//--------------------------------
	LoadGraphics();
	
	//--------------------------------
	//音読み込み
	//--------------------------------
	//LoadSounds();
	
	//--------------------------------
	//カメラ生成
	//--------------------------------
	camera.Create();
	
	g_GameMode = SCENE_MAIN;
	
}
Exemple #2
0
//================================================
//初期化
//================================================
void Initialize(void)
{
	g_Score = 0;
	g_gamecounter = 0;
	
	model.Initialize();
	camera.Initialize();
	tcamera.Initialize();
	
	player.Initialize();
	
	menu.Initialize();
	//pause.Initialize();
	//tuto_menu.Initialize();
	
	window.Initialize();
	
	for(int i = 0;i < ENEMY_NUM;i++)
	{
		enemy[i].Initialize();
	}
	
	boss.Initialize();
	
	/*初期座標等セット*/
	player.SetPosition(200, 400);
	
	//--------------------------------
	//音読み込み
	//--------------------------------
	
	//--------------------------------
	//テクスチャ読み込み
	//--------------------------------
	LoadGraphics();
	
	//--------------------------------
	//カメラ生成
	//--------------------------------
	camera.Create();
	tcamera.Create();
	
	//--------------------------------
	//ライトの設定
	//--------------------------------
	SetLight();
	
	//--------------------------------
	//モデル生成
	//--------------------------------
	model.LoadData("field\\field_5_3.x", COLORKEY_DISABLE);
	
	//--------------------------------
	//フォント生成
	//--------------------------------
	window.CreateFontSprite();
	window.CreateFont();
	
	score.CreateFont();
	
	menu.CreateFontSprite();
	//pause.CreateFontSprite();
	//tuto_menu.CreateFontSprite();
	//mode.CreateFontSprite();
	menu.CreateFont();
	
	//--------------------------------
	//プリミティブ生成
	//--------------------------------
	lPrim = LunaPrimitive::Create(512, PRIM_VERTEX_UV0, false);

	/*モデルデータ変形*/
	//model.Translation();
	
	g_GameMode = SCENE_TITLE;
	
}