summaryrefslogtreecommitdiff
path: root/src/bossMegaGoomba.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bossMegaGoomba.cpp')
-rw-r--r--src/bossMegaGoomba.cpp30
1 files changed, 26 insertions, 4 deletions
diff --git a/src/bossMegaGoomba.cpp b/src/bossMegaGoomba.cpp
index f701ee7..e353c23 100644
--- a/src/bossMegaGoomba.cpp
+++ b/src/bossMegaGoomba.cpp
@@ -3,7 +3,29 @@
#include <g3dhax.h>
#include <sfx.h>
-#include "player.h"
+//Enable this if you're fixing it
+// void setNewActivePhysicsRect(dStageActor_c* actor, Vec* scale) {
+// float amtX = scale->x;
+// float amtY = scale->y;
+
+// ActivePhysics::Info info;
+// info.xDistToCenter = 0.0;
+// info.yDistToCenter = 7.65 * amtY;
+// info.xDistToEdge = 4.0 * amtX;
+// info.yDistToEdge = 7.7 * amtY;
+
+// info.category1 = actor->aPhysics.info.category1;
+// info.category2 = actor->aPhysics.info.category2;
+// info.bitfield1 = actor->aPhysics.info.bitfield1;
+// info.bitfield2 = actor->aPhysics.info.bitfield2;
+// info.unkShort1C = actor->aPhysics.info.unkShort1C;
+// info.callback = actor->aPhysics.info.callback;
+
+// //OSReport("Making new Physics Class and adding to the list\n");
+// actor->aPhysics.removeFromList();
+// actor->aPhysics.initWithStruct(actor, &info);
+// actor->aPhysics.addToList();
+// }
class daMegaGoomba_c : public dEn_c {
int onCreate();
@@ -465,7 +487,7 @@ void daMegaGoomba_c::executeState_Grow() {
float modifier = GetHermiteCurveValue(this->timer, this->keysX, Xkey_count);
this->scale = (Vec){modifier, modifier, modifier};
- setNewActivePhysicsRect(this, &this->scale);
+ // setNewActivePhysicsRect(this, &this->scale);
}
if(this->timer == 60.0)
@@ -488,7 +510,7 @@ void daMegaGoomba_c::beginState_Shrink() {
// disable being hit
Vec tempVec = (Vec){0.0, 0.0, 0.0};
- setNewActivePhysicsRect(this, &tempVec );
+ // setNewActivePhysicsRect(this, &tempVec );
}
void daMegaGoomba_c::executeState_Shrink() {
this->timer += 1.0;
@@ -503,7 +525,7 @@ void daMegaGoomba_c::executeState_Shrink() {
}
void daMegaGoomba_c::endState_Shrink() {
// enable being hit
- setNewActivePhysicsRect(this, &this->scale);
+ // setNewActivePhysicsRect(this, &this->scale);
this->already_hit = false;
}