예제 #1
0
//	コンストラクタ
Player::Player()
{
	camera = new Camera();
	player = new Graphic();

	model = new Model("Model/Heli.x");
	texture = new Texture("Texture/enemy1.png");

	bullet = new Bullet();
	bomb = new Bomb();
	razer = new Razer();
	explosion = new Explosion();

	pBullet = new Pbullet;
	pBomb = new Pbomb;
	pRazer = new Prazer;
	pExp = new Pexplosion;

	DebugLog("プレイヤーを生成しました。\n");

	InitPlayer();
	InitBullet();
	InitBomb();
	InitRazer();
	InitExplosion();
}
void ParticleEngine::Update() {
	if (initiateAchievementEffect) {
		latestAchievement = initiateAchievementEffect;
		InitExplosion(161,54);
		achievementGraphicStage = 1;
		achievementGraphicStageCounter = 0;
		switch (initiateAchievementEffect) {
			case 1:
				break;

		}
		initiateAchievementEffect = 0;
	}
	for (int i = 0; i < MAX_PARTICLES; i++) {
		if (particles[i]->alive) {
			if (particles[i]->type == 2 || particles[i]->type == 0)  { // shooting star
					InitTrail(particles[i]->x, particles[i]->y);

			}
			particles[i]->Update();
		}
	}
}