James Heavey
/
EL17JH
FINAL VERSION
Diff: main.cpp
- Revision:
- 122:a78a1b98b9b1
- Parent:
- 121:12acab75db8f
- Child:
- 123:39740c246fc2
diff -r 12acab75db8f -r a78a1b98b9b1 main.cpp --- a/main.cpp Wed May 08 15:41:42 2019 +0000 +++ b/main.cpp Wed May 08 15:43:57 2019 +0000 @@ -145,16 +145,15 @@ if (pad.check_event(Gamepad::L_PRESSED) && pointer > 1) { // if L is pressed and pointer isnt already on START, move it up one line pointer -= 1; pad.tone(750.0,0.3); - wait(0.1); + wait(0.3); } else if (pad.check_event(Gamepad::R_PRESSED) && pointer < 3) { // if R is pressed and pointer isnt already on HOW TO PLAY, move it down one line pointer += 1; pad.tone(750.0,0.3); - wait(0.1); + wait(0.3); } if (pad.check_event(Gamepad::X_PRESSED) & pad.check_event(Gamepad::Y_PRESSED)) { save_hi_score(0); // resets hi score } - wait(0.4); // prevents game from starting immediately upon restart (button bounce bug) if (pad.check_event(Gamepad::A_PRESSED)) { menu_toggle = !menu_toggle; } @@ -200,11 +199,11 @@ if (pad.check_event(Gamepad::L_PRESSED) && pointer > 1) { // if L is pressed and pointer isnt already on JOYSTICK, move it up one line pointer -= 1; pad.tone(750.0,0.3); - wait(0.1); + wait(0.3); } else if (pad.check_event(Gamepad::R_PRESSED) && pointer < 2) { // if R is pressed and pointer isnt already on TILT, move it down one line pointer += 1; pad.tone(750.0,0.3); - wait(0.1); + wait(0.3); } if (pad.check_event(Gamepad::A_PRESSED)) { // if A is pressed, switch the tilt option accordingly