Snake and Physics based jumping game with high scores and different difficulties.
Dependencies: N5110 SDFileSystem mbed
Diff: main.h
- Revision:
- 5:ae641b1d04fa
- Parent:
- 3:02d9072a2507
diff -r c2d920b17b14 -r ae641b1d04fa main.h --- a/main.h Wed Apr 27 12:43:34 2016 +0000 +++ b/main.h Wed May 04 15:01:20 2016 +0000 @@ -2,7 +2,7 @@ @file main.h @brief Header file containing functions prototypes, defines and global variables. -@brief Revision 1.0. +@brief Revision 1.1 @author Joel W. Webb @date March 2016 */ @@ -109,7 +109,7 @@ }; typedef vector vector; - +/// plinkvar struct is used to pass information to and from the plink functions without resorting to many global variables struct plinkvar { int difficulty; vector pos; @@ -135,7 +135,7 @@ volatile int g_buttonjoy_flag; /*!< Joystick Button flag set in ISR */ volatile int g_joystick_flag; /*!< Joystick x and y values have been polled in ISR */ volatile int g_gametick_flag; /*!< gametick flag is set in gametick_isr by Ticker gametick */ - +volatile int g_screentick_flag; /*!< screentick flag is set in screentick_isr by Ticker screentick */ volatile const float* noteArray; /*!< Float pointer to next note in array. Used in sound Timeout ISR */ // Menu stringList arrays kept in FLASH @@ -176,6 +176,11 @@ @brief Used to control the update speed of games */ void gametick_isr(); +/** +Interrupt service routine for Ticker screentick +@brief Used to control the update speed of the LCD display +*/ +void screentick_isr(); // Snake functions