QuickClick, a reaction timing game which allows single and multiplayer mode.
Dependencies: Controller Display N5110 Operator mbed
Diff: main.cpp
- Revision:
- 12:c0f1f6d007dc
- Parent:
- 10:7f5a9ec5fb26
- Child:
- 13:a8c86ae9ca1b
diff -r 79aff63c73b7 -r c0f1f6d007dc main.cpp --- a/main.cpp Mon Apr 24 09:47:23 2017 +0000 +++ b/main.cpp Mon May 01 17:04:43 2017 +0000 @@ -30,12 +30,12 @@ while(1) { next_player = Opp.check_next_player(next_player, lcd, ctrl, display); // find the next player after 10 goes or failure if (Opp.test_player(next_player, ctrl, display, lcd)) { //next player returns true or flase depending on success - Opp.Correct(next_player, ctrl); // process correct response + Opp.correct(next_player, ctrl); // process correct response } else { - Opp.InCorrect(next_player, ctrl); // process incorrect response + Opp.inCorrect(next_player, ctrl); // process incorrect response if (!multi_player || (multi_player && Opp.check_dead()) ) { //set game over staus - Opp.Game_Over(ctrl, lcd); //display score and level + Opp.gameOver(ctrl, lcd); //display score and level display.init(); //reset waiting time starter(); } //go back to starter screen