The main file for the Dungeon Crawler Game

Dependents:   DCGame el14m2l_Dungeon_Crawler_Game

Committer:
Martyrtle
Date:
Thu May 05 14:27:11 2016 +0000
Revision:
0:037b20d20ebb
Done

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Martyrtle 0:037b20d20ebb 1 /**
Martyrtle 0:037b20d20ebb 2 @file main.h
Martyrtle 0:037b20d20ebb 3 @brief Header file containing function prototypes, defines and global variables for the main.cpp file.
Martyrtle 0:037b20d20ebb 4 @brief Version 1.0.0
Martyrtle 0:037b20d20ebb 5 @author Marty Laverick
Martyrtle 0:037b20d20ebb 6 @date 5th May 2016
Martyrtle 0:037b20d20ebb 7 */
Martyrtle 0:037b20d20ebb 8
Martyrtle 0:037b20d20ebb 9 #ifndef _MAIN_H
Martyrtle 0:037b20d20ebb 10 #define _MAIN_H
Martyrtle 0:037b20d20ebb 11
Martyrtle 0:037b20d20ebb 12 #include "mbed.h"
Martyrtle 0:037b20d20ebb 13 #include "N5110.h"
Martyrtle 0:037b20d20ebb 14 #include "SDFileSystem.h"
Martyrtle 0:037b20d20ebb 15 #include "drawings.h"
Martyrtle 0:037b20d20ebb 16 #include "music.h"
Martyrtle 0:037b20d20ebb 17
Martyrtle 0:037b20d20ebb 18 #define DIRECTION_TOLERANCE 0.05f
Martyrtle 0:037b20d20ebb 19 #define NX 84
Martyrtle 0:037b20d20ebb 20 #define NY 48
Martyrtle 0:037b20d20ebb 21
Martyrtle 0:037b20d20ebb 22 /**
Martyrtle 0:037b20d20ebb 23 @namespace r_led
Martyrtle 0:037b20d20ebb 24 @brief GPIO output for the on-board red LED
Martyrtle 0:037b20d20ebb 25 */
Martyrtle 0:037b20d20ebb 26 DigitalOut r_led(LED_RED);
Martyrtle 0:037b20d20ebb 27 /**
Martyrtle 0:037b20d20ebb 28 @namespace g_led
Martyrtle 0:037b20d20ebb 29 @brief GPIO output for the on-board green LED
Martyrtle 0:037b20d20ebb 30 */
Martyrtle 0:037b20d20ebb 31 DigitalOut g_led(LED_GREEN);
Martyrtle 0:037b20d20ebb 32 /**
Martyrtle 0:037b20d20ebb 33 @namespace b_led
Martyrtle 0:037b20d20ebb 34 @brief GPIO output for the on-board blue LED
Martyrtle 0:037b20d20ebb 35 */
Martyrtle 0:037b20d20ebb 36 DigitalOut b_led(LED_BLUE);
Martyrtle 0:037b20d20ebb 37 /**
Martyrtle 0:037b20d20ebb 38 @namespace sw2
Martyrtle 0:037b20d20ebb 39 @brief GPIO input for the on-board switch
Martyrtle 0:037b20d20ebb 40 */
Martyrtle 0:037b20d20ebb 41 InterruptIn sw2(SW2);
Martyrtle 0:037b20d20ebb 42 /**
Martyrtle 0:037b20d20ebb 43 @namespace sw3
Martyrtle 0:037b20d20ebb 44 @brief GPIO input for the on-board switch
Martyrtle 0:037b20d20ebb 45 */
Martyrtle 0:037b20d20ebb 46 InterruptIn sw3(SW3);
Martyrtle 0:037b20d20ebb 47 /**
Martyrtle 0:037b20d20ebb 48 @namespace js_pot_x
Martyrtle 0:037b20d20ebb 49 @brief GPIO input for the x-axis potentiometer on the joystick
Martyrtle 0:037b20d20ebb 50 */
Martyrtle 0:037b20d20ebb 51 AnalogIn js_pot_x(PTB2);
Martyrtle 0:037b20d20ebb 52 /**
Martyrtle 0:037b20d20ebb 53 @namespace js_pot_y
Martyrtle 0:037b20d20ebb 54 @brief GPIO input for the y-axis potentiometer on the joystick
Martyrtle 0:037b20d20ebb 55 */
Martyrtle 0:037b20d20ebb 56 AnalogIn js_pot_y(PTB3);
Martyrtle 0:037b20d20ebb 57 /**
Martyrtle 0:037b20d20ebb 58 @namespace js_button
Martyrtle 0:037b20d20ebb 59 @brief GPIO input for the button on the joystick
Martyrtle 0:037b20d20ebb 60 */
Martyrtle 0:037b20d20ebb 61 InterruptIn js_button(PTB11);
Martyrtle 0:037b20d20ebb 62 /**
Martyrtle 0:037b20d20ebb 63 @namespace b_button
Martyrtle 0:037b20d20ebb 64 @brief GPIO input for the button on the PCB
Martyrtle 0:037b20d20ebb 65 */
Martyrtle 0:037b20d20ebb 66 InterruptIn b_button(PTB10);
Martyrtle 0:037b20d20ebb 67 /**
Martyrtle 0:037b20d20ebb 68 @namespace lcd
Martyrtle 0:037b20d20ebb 69 @brief GPIO inputs and outputs for the visual display
Martyrtle 0:037b20d20ebb 70 */
Martyrtle 0:037b20d20ebb 71 N5110 lcd(PTE26, PTA0, PTC4, PTD0, PTD2, PTD1, PTC3);
Martyrtle 0:037b20d20ebb 72 /**
Martyrtle 0:037b20d20ebb 73 @namespace sd
Martyrtle 0:037b20d20ebb 74 @brief GPIO inputs and outputs for the SD card
Martyrtle 0:037b20d20ebb 75 */
Martyrtle 0:037b20d20ebb 76 SDFileSystem sd(PTE3, PTE1, PTE2, PTE4, "sd");
Martyrtle 0:037b20d20ebb 77 /**
Martyrtle 0:037b20d20ebb 78 @namespace update_flag
Martyrtle 0:037b20d20ebb 79 @brief Ticker to execute the flag update
Martyrtle 0:037b20d20ebb 80 */
Martyrtle 0:037b20d20ebb 81 Ticker update_flag;
Martyrtle 0:037b20d20ebb 82 /**
Martyrtle 0:037b20d20ebb 83 @namespace *fp
Martyrtle 0:037b20d20ebb 84 @brief FILE pointer to allow file access from the SD card
Martyrtle 0:037b20d20ebb 85 */
Martyrtle 0:037b20d20ebb 86 FILE *fp;
Martyrtle 0:037b20d20ebb 87
Martyrtle 0:037b20d20ebb 88 float refresh_rate; /*!< refresh_rate set in main */
Martyrtle 0:037b20d20ebb 89 float g_dt; /*!< g_dt set in main from refresh_rate */
Martyrtle 0:037b20d20ebb 90 bool up_flag; /*!< up_flag set in ISR */
Martyrtle 0:037b20d20ebb 91 bool js_button_previous; /*!< js_button_previous set and flipped in update_joystick */
Martyrtle 0:037b20d20ebb 92 bool b_button_previous; /*!< b_button_previous set and flipped in update_joystick */
Martyrtle 0:037b20d20ebb 93 bool menu_viewed; /*!< menu_viewed set and flipped in menu */
Martyrtle 0:037b20d20ebb 94 bool jumping; /*!< jumping set in init_game and flipped in start_game */
Martyrtle 0:037b20d20ebb 95 bool spike1_there; /*!< spike1_there set in init_game and flipped in start_game */
Martyrtle 0:037b20d20ebb 96 bool spike2_there; /*!< spike2_there set in init_game and flipped in start_game */
Martyrtle 0:037b20d20ebb 97 bool spike3_there; /*!< spike3_there set in init_game and flipped in start_game */
Martyrtle 0:037b20d20ebb 98 bool spike4_there; /*!< spike4_there set in init_game and flipped in start_game */
Martyrtle 0:037b20d20ebb 99 bool spike5_there; /*!< spike5_there set in init_game and flipped in start_game */
Martyrtle 0:037b20d20ebb 100 bool dead; /*!< dead set in init_game and flipped in start_game */
Martyrtle 0:037b20d20ebb 101 int selector; /*!< selector set in menu */
Martyrtle 0:037b20d20ebb 102 int option; /*!< option set in menu */
Martyrtle 0:037b20d20ebb 103 int health; /*!< health set in init_game and start_game */
Martyrtle 0:037b20d20ebb 104 int spike_x1; /*!< spike_x1 set in init_game and start_game */
Martyrtle 0:037b20d20ebb 105 int spike_x2; /*!< spike_x2 set in init_game and start_game */
Martyrtle 0:037b20d20ebb 106 int spike_x3; /*!< spike_x3 set in init_game and start_game */
Martyrtle 0:037b20d20ebb 107 int spike_x4; /*!< spike_x4 set in init_game and start_game */
Martyrtle 0:037b20d20ebb 108 int spike_x5; /*!< spike_x5 set in init_game and start_game */
Martyrtle 0:037b20d20ebb 109 int spike1_counter; /*!< spike1_counter set in init_game and start_game */
Martyrtle 0:037b20d20ebb 110 int spike2_counter; /*!< spike2_counter set in init_game and start_game */
Martyrtle 0:037b20d20ebb 111 int spike3_counter; /*!< hspike3_counterealth set in init_game and start_game */
Martyrtle 0:037b20d20ebb 112 int spike4_counter; /*!< spike4_counter set in init_game and start_game */
Martyrtle 0:037b20d20ebb 113 int spike5_counter; /*!< spike5_counter set in init_game and start_game */
Martyrtle 0:037b20d20ebb 114 int jump_counter; /*!< jump_counter set in init_game and start_game */
Martyrtle 0:037b20d20ebb 115 int score_counter; /*!< score_counter set in init_game and start_game */
Martyrtle 0:037b20d20ebb 116 int highscore1; /*!< highscore1 set in menu and new_highscore */
Martyrtle 0:037b20d20ebb 117 int highscore2; /*!< highscore2 set in menu and new_highscore */
Martyrtle 0:037b20d20ebb 118 int highscore3; /*!< highscore3 set in menu and new_highscore */
Martyrtle 0:037b20d20ebb 119 int highscore4; /*!< highscore4 set in menu and new_highscore */
Martyrtle 0:037b20d20ebb 120 int highscore5; /*!< highscore5 set in menu and new_highscore */
Martyrtle 0:037b20d20ebb 121 int letter; /*!< letter set in register_name */
Martyrtle 0:037b20d20ebb 122 int letter1; /*!< letter1 set in register_name */
Martyrtle 0:037b20d20ebb 123 int letter2; /*!< letter2 set in register_name */
Martyrtle 0:037b20d20ebb 124 int letter3; /*!< letter3 set in register_name */
Martyrtle 0:037b20d20ebb 125 int letter_counter; /*!< letter_counter set in register_name */
Martyrtle 0:037b20d20ebb 126 char score[10]; /*!< score set in death */
Martyrtle 0:037b20d20ebb 127 char score1[10]; /*!< score1 set in highscores */
Martyrtle 0:037b20d20ebb 128 char score2[10]; /*!< score2 set in highscores */
Martyrtle 0:037b20d20ebb 129 char score3[10]; /*!< score3 set in highscores */
Martyrtle 0:037b20d20ebb 130 char score4[10]; /*!< score4 set in highscores */
Martyrtle 0:037b20d20ebb 131 char score5[10]; /*!< score5 set in highscores */
Martyrtle 0:037b20d20ebb 132 char name[3]; /*!< name set in register_name */
Martyrtle 0:037b20d20ebb 133 char name1[4]; /*!< name1 set in menu and new_highscore */
Martyrtle 0:037b20d20ebb 134 char name2[4]; /*!< name2 set in menu and new_highscore */
Martyrtle 0:037b20d20ebb 135 char name3[4]; /*!< name3 set in menu and new_highscore */
Martyrtle 0:037b20d20ebb 136 char name4[4]; /*!< name4 set in menu and new_highscore */
Martyrtle 0:037b20d20ebb 137 char name5[4]; /*!< name5 set in menu and new_highscore */
Martyrtle 0:037b20d20ebb 138
Martyrtle 0:037b20d20ebb 139 // enums
Martyrtle 0:037b20d20ebb 140 enum DirectionName {
Martyrtle 0:037b20d20ebb 141 UP,
Martyrtle 0:037b20d20ebb 142 DOWN,
Martyrtle 0:037b20d20ebb 143 LEFT,
Martyrtle 0:037b20d20ebb 144 RIGHT,
Martyrtle 0:037b20d20ebb 145 CENTRE,
Martyrtle 0:037b20d20ebb 146 UPRIGHT,
Martyrtle 0:037b20d20ebb 147 UPLEFT,
Martyrtle 0:037b20d20ebb 148 DOWNRIGHT,
Martyrtle 0:037b20d20ebb 149 DOWNLEFT,
Martyrtle 0:037b20d20ebb 150 UNKNOWN
Martyrtle 0:037b20d20ebb 151 };
Martyrtle 0:037b20d20ebb 152
Martyrtle 0:037b20d20ebb 153 // structs
Martyrtle 0:037b20d20ebb 154 struct vector_t {
Martyrtle 0:037b20d20ebb 155 vector_t() {};
Martyrtle 0:037b20d20ebb 156 float x;
Martyrtle 0:037b20d20ebb 157 float y;
Martyrtle 0:037b20d20ebb 158 };
Martyrtle 0:037b20d20ebb 159 vector_t pos; // player position
Martyrtle 0:037b20d20ebb 160 vector_t vel; // player velocity
Martyrtle 0:037b20d20ebb 161 vector_t acc; // player acceleration
Martyrtle 0:037b20d20ebb 162
Martyrtle 0:037b20d20ebb 163 struct joystick {
Martyrtle 0:037b20d20ebb 164 joystick() {};
Martyrtle 0:037b20d20ebb 165 float x; // current x value
Martyrtle 0:037b20d20ebb 166 float x0; // 'centred' x value
Martyrtle 0:037b20d20ebb 167 float y; // current y value
Martyrtle 0:037b20d20ebb 168 float y0; // 'centred' y value
Martyrtle 0:037b20d20ebb 169 int button; // button selector (assume pull-down used, so 1 = pressed, 0 = unpressed)
Martyrtle 0:037b20d20ebb 170 int bbutton;
Martyrtle 0:037b20d20ebb 171 DirectionName direction; // current direction
Martyrtle 0:037b20d20ebb 172 };
Martyrtle 0:037b20d20ebb 173 joystick joystick;
Martyrtle 0:037b20d20ebb 174
Martyrtle 0:037b20d20ebb 175 /**
Martyrtle 0:037b20d20ebb 176 Calibrates the joystick from it's initial position
Martyrtle 0:037b20d20ebb 177 */
Martyrtle 0:037b20d20ebb 178 void calibrate_joystick();
Martyrtle 0:037b20d20ebb 179 /**
Martyrtle 0:037b20d20ebb 180 Sets to up_flag to true
Martyrtle 0:037b20d20ebb 181 */
Martyrtle 0:037b20d20ebb 182 void update_flag_func();
Martyrtle 0:037b20d20ebb 183 /**
Martyrtle 0:037b20d20ebb 184 Sets the new values for the joystick struct variables
Martyrtle 0:037b20d20ebb 185 */
Martyrtle 0:037b20d20ebb 186 void update_joystick();
Martyrtle 0:037b20d20ebb 187 /**
Martyrtle 0:037b20d20ebb 188 Checks if the js_button has been held down
Martyrtle 0:037b20d20ebb 189 @returns false if the button has already been registered as presed but is being held down else true
Martyrtle 0:037b20d20ebb 190 */
Martyrtle 0:037b20d20ebb 191 bool js_button_check();
Martyrtle 0:037b20d20ebb 192 /**
Martyrtle 0:037b20d20ebb 193 Checks if the b_button has been held down
Martyrtle 0:037b20d20ebb 194 @returns false if the button has already been registered as presed but is being held down else true
Martyrtle 0:037b20d20ebb 195 */
Martyrtle 0:037b20d20ebb 196 bool b_button_check();
Martyrtle 0:037b20d20ebb 197 /**
Martyrtle 0:037b20d20ebb 198 Initialises the settings of on-board components for the K64F
Martyrtle 0:037b20d20ebb 199 */
Martyrtle 0:037b20d20ebb 200 void init_K64F();
Martyrtle 0:037b20d20ebb 201 /**
Martyrtle 0:037b20d20ebb 202 Initialises the settings of the N5110
Martyrtle 0:037b20d20ebb 203 */
Martyrtle 0:037b20d20ebb 204 void init_N5110();
Martyrtle 0:037b20d20ebb 205 /**
Martyrtle 0:037b20d20ebb 206 Initialises the objects with bitmaps
Martyrtle 0:037b20d20ebb 207 */
Martyrtle 0:037b20d20ebb 208 void init_obj();
Martyrtle 0:037b20d20ebb 209 /**
Martyrtle 0:037b20d20ebb 210 Runs the menu screen and allows for progression to further game functions
Martyrtle 0:037b20d20ebb 211 */
Martyrtle 0:037b20d20ebb 212 void menu();
Martyrtle 0:037b20d20ebb 213 /**
Martyrtle 0:037b20d20ebb 214 Runs the function as declared by the variable option set in th menu
Martyrtle 0:037b20d20ebb 215 */
Martyrtle 0:037b20d20ebb 216 void menu_select();
Martyrtle 0:037b20d20ebb 217 /**
Martyrtle 0:037b20d20ebb 218 Runs the game and calls all other functions relevant to the game
Martyrtle 0:037b20d20ebb 219 */
Martyrtle 0:037b20d20ebb 220 void start_game();
Martyrtle 0:037b20d20ebb 221 /**
Martyrtle 0:037b20d20ebb 222 Initialises all variables used in the game and sets the initial screen
Martyrtle 0:037b20d20ebb 223 */
Martyrtle 0:037b20d20ebb 224 void init_game();
Martyrtle 0:037b20d20ebb 225 /**
Martyrtle 0:037b20d20ebb 226 Initialises the players position and speed
Martyrtle 0:037b20d20ebb 227 */
Martyrtle 0:037b20d20ebb 228 void init_player();
Martyrtle 0:037b20d20ebb 229 /**
Martyrtle 0:037b20d20ebb 230 Sets the health animations in the HEALTH sub-array
Martyrtle 0:037b20d20ebb 231 */
Martyrtle 0:037b20d20ebb 232 void draw_health();
Martyrtle 0:037b20d20ebb 233 /**
Martyrtle 0:037b20d20ebb 234 Determines whether the player has collided with the spikes
Martyrtle 0:037b20d20ebb 235 */
Martyrtle 0:037b20d20ebb 236 void check_collisions();
Martyrtle 0:037b20d20ebb 237 /**
Martyrtle 0:037b20d20ebb 238 Updates the players position depending on the players current position, velocity and acceleration, all determined from SUVAT equations
Martyrtle 0:037b20d20ebb 239 */
Martyrtle 0:037b20d20ebb 240 void update_physics_engine();
Martyrtle 0:037b20d20ebb 241 /**
Martyrtle 0:037b20d20ebb 242 Updates the lcd to show the new game state
Martyrtle 0:037b20d20ebb 243 */
Martyrtle 0:037b20d20ebb 244 void redraw();
Martyrtle 0:037b20d20ebb 245 /**
Martyrtle 0:037b20d20ebb 246 Ends the game and shows the user their score when they run out of lives
Martyrtle 0:037b20d20ebb 247 */
Martyrtle 0:037b20d20ebb 248 void death();
Martyrtle 0:037b20d20ebb 249 /**
Martyrtle 0:037b20d20ebb 250 Displays the five highest scores and the name of the person who got the score
Martyrtle 0:037b20d20ebb 251 */
Martyrtle 0:037b20d20ebb 252 void highscores();
Martyrtle 0:037b20d20ebb 253 /**
Martyrtle 0:037b20d20ebb 254 Determines whether the latest score after death is higher than any current highscores and sets it accordingly
Martyrtle 0:037b20d20ebb 255 */
Martyrtle 0:037b20d20ebb 256 void new_highscore();
Martyrtle 0:037b20d20ebb 257 /**
Martyrtle 0:037b20d20ebb 258 Allows the user to resgister a name to accompany their new highscore
Martyrtle 0:037b20d20ebb 259 */
Martyrtle 0:037b20d20ebb 260 void register_name();
Martyrtle 0:037b20d20ebb 261 /**
Martyrtle 0:037b20d20ebb 262 Displays an overview of the games concept
Martyrtle 0:037b20d20ebb 263 */
Martyrtle 0:037b20d20ebb 264 void rules();
Martyrtle 0:037b20d20ebb 265 /**
Martyrtle 0:037b20d20ebb 266 Displays the details of the games creator
Martyrtle 0:037b20d20ebb 267 */
Martyrtle 0:037b20d20ebb 268 void credits();
Martyrtle 0:037b20d20ebb 269 /**
Martyrtle 0:037b20d20ebb 270 @namespace buzzer
Martyrtle 0:037b20d20ebb 271 @brief GPIO output for music
Martyrtle 0:037b20d20ebb 272 */
Martyrtle 0:037b20d20ebb 273 speaker buzzer(PTA2);
Martyrtle 0:037b20d20ebb 274 /**
Martyrtle 0:037b20d20ebb 275 @namespace screen
Martyrtle 0:037b20d20ebb 276 @brief A three dimensional array for allowing seperate sections of the two dimensional lcd
Martyrtle 0:037b20d20ebb 277 */
Martyrtle 0:037b20d20ebb 278 Screen screen;
Martyrtle 0:037b20d20ebb 279 /**
Martyrtle 0:037b20d20ebb 280 @namespace pointer_obj
Martyrtle 0:037b20d20ebb 281 @brief Object for the pointer array
Martyrtle 0:037b20d20ebb 282 */
Martyrtle 0:037b20d20ebb 283 object pointer_obj(5,5);
Martyrtle 0:037b20d20ebb 284 /**
Martyrtle 0:037b20d20ebb 285 @namespace player_still_obj
Martyrtle 0:037b20d20ebb 286 @brief Object for the player_still array
Martyrtle 0:037b20d20ebb 287 */
Martyrtle 0:037b20d20ebb 288 object player_still_obj(13,15);
Martyrtle 0:037b20d20ebb 289 /**
Martyrtle 0:037b20d20ebb 290 @namespace player_moving1_obj
Martyrtle 0:037b20d20ebb 291 @brief Object for the player_moving1 array
Martyrtle 0:037b20d20ebb 292 */
Martyrtle 0:037b20d20ebb 293 object player_moving1_obj(13,15);
Martyrtle 0:037b20d20ebb 294 /**
Martyrtle 0:037b20d20ebb 295 @namespace player_moving2_obj
Martyrtle 0:037b20d20ebb 296 @brief Object for the player_moving2 array
Martyrtle 0:037b20d20ebb 297 */
Martyrtle 0:037b20d20ebb 298 object player_moving2_obj(13,15);
Martyrtle 0:037b20d20ebb 299 /**
Martyrtle 0:037b20d20ebb 300 @namespace player_jumping_obj
Martyrtle 0:037b20d20ebb 301 @brief Object for the player_jumping array
Martyrtle 0:037b20d20ebb 302 */
Martyrtle 0:037b20d20ebb 303 object player_jumping_obj(13,15);
Martyrtle 0:037b20d20ebb 304 /**
Martyrtle 0:037b20d20ebb 305 @namespace spike_small_obj1
Martyrtle 0:037b20d20ebb 306 @brief Object for the spike_small array
Martyrtle 0:037b20d20ebb 307 */
Martyrtle 0:037b20d20ebb 308 object spike_small_obj1(5,5);
Martyrtle 0:037b20d20ebb 309 /**
Martyrtle 0:037b20d20ebb 310 @namespace spike_small_obj2
Martyrtle 0:037b20d20ebb 311 @brief Object for the spike_small array
Martyrtle 0:037b20d20ebb 312 */
Martyrtle 0:037b20d20ebb 313 object spike_small_obj2(5,5);
Martyrtle 0:037b20d20ebb 314 /**
Martyrtle 0:037b20d20ebb 315 @namespace spike_small_obj3
Martyrtle 0:037b20d20ebb 316 @brief Object for the spike_small array
Martyrtle 0:037b20d20ebb 317 */
Martyrtle 0:037b20d20ebb 318 object spike_small_obj3(5,5);
Martyrtle 0:037b20d20ebb 319 /**
Martyrtle 0:037b20d20ebb 320 @namespace spike_large_obj1
Martyrtle 0:037b20d20ebb 321 @brief Object for the spike_large array
Martyrtle 0:037b20d20ebb 322 */
Martyrtle 0:037b20d20ebb 323 object spike_large_obj1(6,8);
Martyrtle 0:037b20d20ebb 324 /**
Martyrtle 0:037b20d20ebb 325 @namespace spike_large_obj2
Martyrtle 0:037b20d20ebb 326 @brief Object for the spike_large array
Martyrtle 0:037b20d20ebb 327 */
Martyrtle 0:037b20d20ebb 328 object spike_large_obj2(6,8);
Martyrtle 0:037b20d20ebb 329 /**
Martyrtle 0:037b20d20ebb 330 @namespace player
Martyrtle 0:037b20d20ebb 331 @brief Animation for the player_still array, player_moving1 array and player_moving2 array
Martyrtle 0:037b20d20ebb 332 */
Martyrtle 0:037b20d20ebb 333 animation player(13,15,player_still,player_moving1,player_moving2);
Martyrtle 0:037b20d20ebb 334 /**
Martyrtle 0:037b20d20ebb 335 @namespace bat1
Martyrtle 0:037b20d20ebb 336 @brief Animation for the bat_middle array, bat_open array and bat_close array
Martyrtle 0:037b20d20ebb 337 */
Martyrtle 0:037b20d20ebb 338 animation bat1(13,7,bat_middle,bat_open,bat_close);
Martyrtle 0:037b20d20ebb 339 /**
Martyrtle 0:037b20d20ebb 340 @namespace bat2
Martyrtle 0:037b20d20ebb 341 @brief Animation for the bat_middle array, bat_open array and bat_close array
Martyrtle 0:037b20d20ebb 342 */
Martyrtle 0:037b20d20ebb 343 animation bat2(13,7,bat_middle,bat_open,bat_close);
Martyrtle 0:037b20d20ebb 344 /**
Martyrtle 0:037b20d20ebb 345 @namespace bat3
Martyrtle 0:037b20d20ebb 346 @brief Animation for the bat_middle array, bat_open array and bat_close array
Martyrtle 0:037b20d20ebb 347 */
Martyrtle 0:037b20d20ebb 348 animation bat3(13,7,bat_middle,bat_open,bat_close);
Martyrtle 0:037b20d20ebb 349 /**
Martyrtle 0:037b20d20ebb 350 @namespace bat4
Martyrtle 0:037b20d20ebb 351 @brief Animation for the bat_middle array, bat_open array and bat_close array
Martyrtle 0:037b20d20ebb 352 */
Martyrtle 0:037b20d20ebb 353 animation bat4(13,7,bat_middle,bat_open,bat_close);
Martyrtle 0:037b20d20ebb 354 /**
Martyrtle 0:037b20d20ebb 355 @namespace bat5
Martyrtle 0:037b20d20ebb 356 @brief Animation for the bat_middle array, bat_open array and bat_close array
Martyrtle 0:037b20d20ebb 357 */
Martyrtle 0:037b20d20ebb 358 animation bat5(13,7,bat_middle,bat_open,bat_close);
Martyrtle 0:037b20d20ebb 359 /**
Martyrtle 0:037b20d20ebb 360 @namespace background
Martyrtle 0:037b20d20ebb 361 @brief Background to add scenery to the BG sub-array
Martyrtle 0:037b20d20ebb 362 */
Martyrtle 0:037b20d20ebb 363 Background background;
Martyrtle 0:037b20d20ebb 364
Martyrtle 0:037b20d20ebb 365 #endif