Custom Game Controllers assembled in lab sessions and mounted with Nokia N5110 LCD display and a FRDM-K64F mbed plus various buttons, a joystick, potentiometer and piezo. Designed a game called 'Fruit Basket' to be played on the game controller where the player controls a basket and moves it catch objects that fall from random points along the top of the display to collect score.

Dependencies:   Basket Catch_Model Fruit Gamepad N5110 Objects mbed

Revision:
9:3e7fca03c7c1
Parent:
8:1a785bfa4d08
Child:
10:92a658c3c5a4
diff -r 1a785bfa4d08 -r 3e7fca03c7c1 Project_Submission.cpp
--- a/Project_Submission.cpp	Wed Apr 12 14:48:14 2017 +0000
+++ b/Project_Submission.cpp	Fri Apr 14 15:38:31 2017 +0000
@@ -34,7 +34,10 @@
         do {
             catchm.input(pad);
             catchm.update(lcd, pad);
-            catchm.check_abxy(lcd, pad);
+            
+            catchm.check_a(lcd,pad);
+            catchm.check_b(lcd,pad);
+
             lives = catchm.get_lives();
             render();
             wait(1.0f/fps);
@@ -73,4 +76,5 @@
         pad.leds_off();
         wait(0.1);
     }
+    pad.tone(500, 0.5);
 }
\ No newline at end of file