diff options
author | Treeki <treeki@gmail.com> | 2012-02-23 05:40:10 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-02-23 05:40:10 +0100 |
commit | d2dcf3250ea5e9e2197c8f640d2a2cf8c963f74d (patch) | |
tree | e9e4efdea441f34b76505e85caab97f67013c023 /src/koopatlas/camera.cpp | |
parent | e2bb29c4bbf36a4e45a7312943fa50c319b8bc26 (diff) | |
download | kamek-d2dcf3250ea5e9e2197c8f640d2a2cf8c963f74d.tar.gz kamek-d2dcf3250ea5e9e2197c8f640d2a2cf8c963f74d.zip |
added water BG to World Maps
Diffstat (limited to 'src/koopatlas/camera.cpp')
-rw-r--r-- | src/koopatlas/camera.cpp | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/koopatlas/camera.cpp b/src/koopatlas/camera.cpp index 9efbcd6..87547d9 100644 --- a/src/koopatlas/camera.cpp +++ b/src/koopatlas/camera.cpp @@ -70,30 +70,29 @@ int dWorldCamera_c::onDelete() { int dWorldCamera_c::onExecute() { int heldButtons = Remocon_GetButtons(GetActiveRemocon()); if (heldButtons & WPAD_MINUS) { - int nowPressed = Remocon_GetPressed(GetActiveRemocon()); bool change = false; - if (nowPressed & WPAD_LEFT) { - currentX -= 16; + if (heldButtons & WPAD_LEFT) { + currentX -= 8.0f; change = true; } - if (nowPressed & WPAD_RIGHT) { - currentX += 16; + if (heldButtons & WPAD_RIGHT) { + currentX += 8.0f; change = true; } - if (nowPressed & WPAD_UP) { - currentY += 16; + if (heldButtons & WPAD_UP) { + currentY += 8.0f; change = true; } - if (nowPressed & WPAD_DOWN) { - currentY -= 16; + if (heldButtons & WPAD_DOWN) { + currentY -= 8.0f; change = true; } - if (nowPressed & WPAD_B) { - zoomLevel -= 0.02; + if (heldButtons & WPAD_B) { + zoomLevel -= 0.10f; change = true; } - if (nowPressed & WPAD_A) { - zoomLevel += 0.02; + if (heldButtons & WPAD_A) { + zoomLevel += 0.10f; change = true; } if (change) { |