示例#1
0
文件: Canon.cpp 项目: Cyberra/Peggle
void Canon::Update()
{
	float dt = gTimer->GetDeltaTime();

	Rotate(dt);
	Shoot(dt);
	AddLife(dt);
}
示例#2
0
文件: System.cpp 项目: yohokuno/tbm
//スコア加算
int CSystem::AddScore(LONGLONG s) {
	LONGLONG old = score;
	LONGLONG mul = 1;
	score += s * mul;
	if( score >= extend_score && old < extend_score) {
		extend_count += 1;
		extend_score += extend_interval * extend_count;
		g_pMaterial->sndLife.Play(0);
		AddLife(1);
	}
	return 1;
}