summaryrefslogtreecommitdiff
path: root/src/bossFuzzyBear.cpp
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-02-28 10:24:05 -0600
committerColin Noga <Tempus@chronometry.ca>2012-02-28 10:24:05 -0600
commitd45bf07f2c5aeaea6ec0c6fa40c975afdd29d682 (patch)
tree4da318e19ccc39d194cdc5dc6bc243c23d950bf7 /src/bossFuzzyBear.cpp
parentd6924bebc44bf904ec3e9ed8126614f67a04df88 (diff)
downloadkamek-d45bf07f2c5aeaea6ec0c6fa40c975afdd29d682.tar.gz
kamek-d45bf07f2c5aeaea6ec0c6fa40c975afdd29d682.zip
more boss fixes
Diffstat (limited to 'src/bossFuzzyBear.cpp')
-rw-r--r--src/bossFuzzyBear.cpp51
1 files changed, 38 insertions, 13 deletions
diff --git a/src/bossFuzzyBear.cpp b/src/bossFuzzyBear.cpp
index 1c9ab89..f22cf6c 100644
--- a/src/bossFuzzyBear.cpp
+++ b/src/bossFuzzyBear.cpp
@@ -341,36 +341,43 @@ void daFuzzyBear_c::updateModelMatrices() {
// Grow State
void daFuzzyBear_c::beginState_Grow() {
- OSReport("Growing when Kameck Tells me to.");
+ OSReport("Growing when Kameck Tells me to.\n");
this->timer = 0;
+ OSReport("Stopping the Music.\n");
StopBGMMusic();
- dStage32C_c::instance->freezeMarioBossFlag = 1;
-// Store 1 to PointerToStage32C @ 0x15C - This should freeze Mario - Unimplemented because I don't know how to ref the class
+ OSReport("Setting the boss flag.\n");
+ // dStage32C_c::instance->freezeMarioBossFlag = 1;
+// Store 1 to PointerToStage32C @ 0x15C - This should freeze Mario - But it doesn't. Must do something though, right?
- Vec pos = (Vec){this->pos.x+40.0, this->pos.y + 80.0, 3564.0};
+ OSReport("Creating the Vecs.\n");
+ Vec pos = (Vec){this->pos.x - 124.0, this->pos.y + 104.0, 3564.0};
S16Vec rot = (S16Vec){0, 0, 0};
+
+ OSReport("Creating Kameck.\n");
Kameck = (daKameckDemo*)createChild(KAMECK_FOR_CASTLE_DEMO, (dStageActor_c*)this, 0, &pos, &rot, 0);
+ OSReport("Setting Kameck's State.\n");
Kameck->doStateChange(&daKameckDemo::StateID_DemoWait);
+
+ OSReport("Executing the Kamek.\n");
}
void daFuzzyBear_c::executeState_Grow() {
- if (this->timer == 30) { Kameck->doStateChange(&daKameckDemo::StateID_DemoSt); }
- if (this->timer == 90) { Kameck->doStateChange(&daKameckDemo::StateID_DemoSt2); }
-
+ if (this->timer == 130) { Kameck->doStateChange(&daKameckDemo::StateID_DemoSt); }
+ if (this->timer == 400) { Kameck->doStateChange(&daKameckDemo::StateID_DemoSt2); }
this->timer = this->timer + 1;
float scaleSpeed, yPosScaling;
- if (this->timer == 60) { PlaySound(this, SE_BOSS_IGGY_WANWAN_TO_L); }
+ if (this->timer == 150) { PlaySound(this, SE_BOSS_IGGY_WANWAN_TO_L); }
- if ((this->timer > 60) && (this->timer < 140)) {
+ if ((this->timer > 150) && (this->timer < 230)) {
if (BigBossFuzzyBear == 1) {
scaleSpeed = 0.025;
@@ -381,26 +388,44 @@ void daFuzzyBear_c::executeState_Grow() {
float modifier;
- modifier = 1.0 + ((this->timer - 60) * scaleSpeed);
+ modifier = 1.0 + ((this->timer - 150) * scaleSpeed);
this->scale = (Vec){modifier, modifier, modifier};
this->pos.y = this->pos.y + (yPosScaling/80);
}
+
+ if (this->timer == 360) {
+
+ Vec tempPos = (Vec){this->pos.x - 40.0, this->pos.y + 120.0, 3564.0};
+ CreateEffect(&tempPos, &(S16Vec){0,0,0}, &(Vec){1.0, 1.0, 1.0}, 175); // 400 & 401 // 564 // 583 // 754 // 958
+ CreateEffect(&tempPos, &(S16Vec){0,0,0}, &(Vec){1.0, 1.0, 1.0}, 400); // 400 & 401 // 564 // 583 // 754 // 958
+ CreateEffect(&tempPos, &(S16Vec){0,0,0}, &(Vec){1.0, 1.0, 1.0}, 401); // 400 & 401 // 564 // 583 // 754 // 958
+ CreateEffect(&tempPos, &(S16Vec){0,0,0}, &(Vec){1.0, 1.0, 1.0}, 564); // 400 & 401 // 564 // 583 // 754 // 958
+ CreateEffect(&tempPos, &(S16Vec){0,0,0}, &(Vec){1.0, 1.0, 1.0}, 583); // 400 & 401 // 564 // 583 // 754 // 958
+ CreateEffect(&tempPos, &(S16Vec){0,0,0}, &(Vec){1.0, 1.0, 1.0}, 754); // 400 & 401 // 564 // 583 // 754 // 958
+ CreateEffect(&tempPos, &(S16Vec){0,0,0}, &(Vec){1.0, 1.0, 1.0}, 958); // 400 & 401 // 564 // 583 // 754 // 958
+
+ }
- if (this->timer > 170) { doStateChange(&StateID_Bounce); }
+ if (this->timer > 420) { doStateChange(&StateID_Bounce); }
}
void daFuzzyBear_c::endState_Grow() {
this->Baseline = this->pos.y;
- dStage32C_c::instance->freezeMarioBossFlag = 0;
+ OSReport("Ending boss flag.\n");
+ // dStage32C_c::instance->freezeMarioBossFlag = 0;
// Store 0 to PointerToStage32C @ 0x15C - This should unfreeze Mario
// PlaySound(this, STRM_BGM_TORIDE_BOSS);
+ OSReport("Ending BGMusic.\n");
StartBGMMusic();
+ OSReport("Deleting the Kamek.\n");
+
+ Kameck->Delete(1);
OSReport("OK. All grown up now.");
}
@@ -777,7 +802,7 @@ void daFuzzyBear_c::beginState_Outro() {
this->timer = 0;
StopBGMMusic();
// Store 1 to PointerToStage32C @ 0x15C - This should freeze Mario
- dStage32C_c::instance->freezeMarioBossFlag = 1;
+ // dStage32C_c::instance->freezeMarioBossFlag = 1;
}
void daFuzzyBear_c::executeState_Outro() {