Ball drop game with menus and highscore tracking developed for ELEC2645 at the University of Leeds.
Dependencies: N5110 mbed PowerControl
Game developed for ELEC 2645.
Extremely detailed report outlining all aspects of project found below. /media/uploads/AppleJuice/projectreport.pdf
Diff: main.h
- Revision:
- 20:2c8bf36d1702
- Parent:
- 19:97e0516dd6b2
--- a/main.h Fri May 08 12:17:39 2015 +0000 +++ b/main.h Fri May 08 16:30:15 2015 +0000 @@ -1,4 +1,4 @@ -/** +/** @file main.h @brief Header file for main game containing function prototypes, namespaces and global variables. @autor Thomas Davies @@ -65,7 +65,7 @@ @namespace gameClock @brief the master clock of game operation. All animation timings are based on this clock. */ -Ticker gameClock; +Ticker gameClock; /** @namespace lowFlipper @@ -75,9 +75,9 @@ /** @namespace highFlipper -@brief used for PWM speaker control, triggers pin high. +@brief used for PWM speaker control, triggers pin high. */ -Timeout highFlipper; +Timeout highFlipper; //##############GLOBAL VARIABLES##################// @@ -100,7 +100,7 @@ /** Advance Platforms * * animate platforms shift up n pixels -* +* * @param n - number of pixels to shift */ void advancePlatforms(int n=1); @@ -155,7 +155,7 @@ */ bool isBallDirClear(int dir); -/** Game Over Controller +/** Game Over Controller * * Displays end game screen, and allows user interaction with options via joystick. * Also controls option selection and next screens. @@ -190,7 +190,7 @@ /** PWM speaker control function * -* makes a boop sound used for collisions with platforms. +* makes a boop sound used for collisions with platforms. */ void boop ();