diff options
author | Colin Noga <Tempus@chronometry.ca> | 2013-05-29 12:53:19 -0500 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2013-05-29 12:53:19 -0500 |
commit | 7dd63b2700ff841a760abdcfb78d444eddb47ac9 (patch) | |
tree | e235b1c37f1bff16a5c370af646fa19835c121a4 | |
parent | d59e98050ca9a76733b65ac59105962ad16f4a54 (diff) | |
download | kamek-7dd63b2700ff841a760abdcfb78d444eddb47ac9.tar.gz kamek-7dd63b2700ff841a760abdcfb78d444eddb47ac9.zip |
classic controller improvement, shy guy fireball bug fixed
Diffstat (limited to '')
-rw-r--r-- | src/classic_controller.S | 41 | ||||
-rw-r--r-- | src/shyguy.cpp | 10 |
2 files changed, 30 insertions, 21 deletions
diff --git a/src/classic_controller.S b/src/classic_controller.S index a1af772..ec35e60 100644 --- a/src/classic_controller.S +++ b/src/classic_controller.S @@ -189,22 +189,6 @@ skip_ZL: lis r6,0x7fc0 // float stw r6,0x10(r26) // set waggle ; KPADInsideStatus->acc->y skip_ZR: - andi. r4,r5,1 // WPAD_CLASSIC_BUTTON_UP - beq- skip_up - ori r6,r6,2 // WPAD_BUTTON_RIGHT -skip_up: - andi. r4,r5,2 // WPAD_CLASSIC_BUTTON_LEFT - beq- skip_left - ori r6,r6,8 // WPAD_BUTTON_UP -skip_left: - andi. r4,r5,0x8000 // WPAD_CLASSIC_BUTTON_RIGHT - beq- skip_right - ori r6,r6,4 // WPAD_BUTTON_DOWN -skip_right: - andi. r4,r5,0x4000 // WPAD_CLASSIC_BUTTON_DOWN - beq- skip_down - ori r6,r6,1 // WPAD_BUTTON_LEFT -skip_down: andi. r4,r5,0x400 // WPAD_CLASSIC_BUTTON_PLUS beq- skip_plus ori r6,r6,0x10 // WPAD_BUTTON_PLUS @@ -213,6 +197,10 @@ skip_plus: beq- skip_minus ori r6,r6,0x1000 // WPAD_BUTTON_MINUS skip_minus: + andi. r4,r5,0xF // Any_DPAD + beq- DPADOnly // DPAD and Analog are processed separately to avoid conflicting button presses + + lfs f8,0x6c(r26) // left analog x ; KPADInsideStatus->KPADEXStatus_cl->lstick lfs f9,0x70(r26) // left analog y ; KPADInsideStatus->KPADEXStatus_cl->rstick @@ -242,6 +230,27 @@ skip_left_analog: blr +DPADOnly: + andi. r4,r5,1 // WPAD_CLASSIC_BUTTON_UP + beq- skip_up + ori r6,r6,2 // WPAD_BUTTON_RIGHT +skip_up: + andi. r4,r5,2 // WPAD_CLASSIC_BUTTON_LEFT + beq- skip_left + ori r6,r6,8 // WPAD_BUTTON_UP +skip_left: + andi. r4,r5,0x8000 // WPAD_CLASSIC_BUTTON_RIGHT + beq- skip_right + ori r6,r6,4 // WPAD_BUTTON_DOWN +skip_right: + andi. r4,r5,0x4000 // WPAD_CLASSIC_BUTTON_DOWN + beq- skip_down + ori r6,r6,1 // WPAD_BUTTON_LEFT +skip_down: + mr r5,r6 + blr + + diff --git a/src/shyguy.cpp b/src/shyguy.cpp index 21e285e..7e3889d 100644 --- a/src/shyguy.cpp +++ b/src/shyguy.cpp @@ -357,13 +357,13 @@ daShyGuy *daShyGuy::build() { backFire = apOther->owner->direction ^ 1; - if (this->isDown == 0) { - stateVar = &StateID_FireKnockBack; - } - else { + // if (this->isDown == 0) { + // stateVar = &StateID_FireKnockBack; + // } + // else { StageE4::instance->spawnCoinJump(pos, 0, 1, 0); doStateChange(&StateID_DieSmoke); - } + // } } else { // Ballooneers stateVar = &StateID_FlameHit; |