diff options
author | Treeki <treeki@gmail.com> | 2012-12-04 00:19:32 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-12-04 00:19:32 +0100 |
commit | 4dab891a526d909dd51523f3d3173c3184ec7705 (patch) | |
tree | e51fb3d3c3605216fa2ee40c7992cc97ac696cd6 /src/apDebug.cpp | |
parent | 15af665eac26f9a29b864617d571ef539a6c42b0 (diff) | |
download | kamek-4dab891a526d909dd51523f3d3173c3184ec7705.tar.gz kamek-4dab891a526d909dd51523f3d3173c3184ec7705.zip |
tons of updates. better APDebug, fixed dEn_c, mostly fixed gigoomba
Diffstat (limited to '')
-rw-r--r-- | src/apDebug.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/apDebug.cpp b/src/apDebug.cpp index a352d4a..f485474 100644 --- a/src/apDebug.cpp +++ b/src/apDebug.cpp @@ -135,6 +135,21 @@ void APDebugDrawer::drawXlu() { float blX = centreX - edgeDistX, blY = centreY - edgeDistY; float brX = centreX + edgeDistX, brY = centreY - edgeDistY; + switch (ap->collisionCheckType) { + case 2: // vert trapezoid + tlY = centreY + ap->trpValue0; + trY = centreY + ap->trpValue1; + blY = centreY + ap->trpValue2; + brY = centreY + ap->trpValue3; + break; + case 3: // horz trapezoid + tlX = centreX + ap->trpValue0; + trX = centreX + ap->trpValue1; + blX = centreX + ap->trpValue2; + brX = centreX + ap->trpValue3; + break; + } + // Top GXPosition3f32(tlX, tlY, 8000.0f); GXColor4u8(r,g,b,a); |