Game for Project 2
Dependencies: 4DGL-uLCD-SE SDFileSystem mbed wave_player
globals.h@0:7fe3c940e4b5, 2015-06-25 (annotated)
- Committer:
- leuyentran
- Date:
- Thu Jun 25 14:35:52 2015 +0000
- Revision:
- 0:7fe3c940e4b5
Georgia Tech ECE2035 Sum 15
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
leuyentran | 0:7fe3c940e4b5 | 1 | /* Gatech ECE2035 2015 SPRING PAC MAN |
leuyentran | 0:7fe3c940e4b5 | 2 | * Copyright (c) 2015 Gatech ECE2035 |
leuyentran | 0:7fe3c940e4b5 | 3 | * |
leuyentran | 0:7fe3c940e4b5 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
leuyentran | 0:7fe3c940e4b5 | 5 | * of this software and associated documentation files (the "Software"), to deal |
leuyentran | 0:7fe3c940e4b5 | 6 | * in the Software without restriction, including without limitation the rights |
leuyentran | 0:7fe3c940e4b5 | 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
leuyentran | 0:7fe3c940e4b5 | 8 | * copies of the Software, and to permit persons to whom the Software is |
leuyentran | 0:7fe3c940e4b5 | 9 | * furnished to do so, subject to the following conditions: |
leuyentran | 0:7fe3c940e4b5 | 10 | * |
leuyentran | 0:7fe3c940e4b5 | 11 | * The above copyright notice and this permission notice shall be included in |
leuyentran | 0:7fe3c940e4b5 | 12 | * all copies or substantial portions of the Software. |
leuyentran | 0:7fe3c940e4b5 | 13 | * |
leuyentran | 0:7fe3c940e4b5 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
leuyentran | 0:7fe3c940e4b5 | 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
leuyentran | 0:7fe3c940e4b5 | 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
leuyentran | 0:7fe3c940e4b5 | 17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
leuyentran | 0:7fe3c940e4b5 | 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
leuyentran | 0:7fe3c940e4b5 | 19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
leuyentran | 0:7fe3c940e4b5 | 20 | * SOFTWARE. |
leuyentran | 0:7fe3c940e4b5 | 21 | */ |
leuyentran | 0:7fe3c940e4b5 | 22 | #ifndef GLOBAL_H |
leuyentran | 0:7fe3c940e4b5 | 23 | #define GLOBAL_H |
leuyentran | 0:7fe3c940e4b5 | 24 | |
leuyentran | 0:7fe3c940e4b5 | 25 | #ifndef ULCD_4DGL_H_ |
leuyentran | 0:7fe3c940e4b5 | 26 | #define ULCD_4DGL_H_ |
leuyentran | 0:7fe3c940e4b5 | 27 | #include "uLCD_4DGL.h" |
leuyentran | 0:7fe3c940e4b5 | 28 | #endif |
leuyentran | 0:7fe3c940e4b5 | 29 | |
leuyentran | 0:7fe3c940e4b5 | 30 | // === [global object] === |
leuyentran | 0:7fe3c940e4b5 | 31 | extern uLCD_4DGL uLCD; |
leuyentran | 0:7fe3c940e4b5 | 32 | |
leuyentran | 0:7fe3c940e4b5 | 33 | |
leuyentran | 0:7fe3c940e4b5 | 34 | // === [global settings] === |
leuyentran | 0:7fe3c940e4b5 | 35 | #define BACKGROUND_COLOR 0x000000 |
leuyentran | 0:7fe3c940e4b5 | 36 | #define GRID_RADIUS 3 |
leuyentran | 0:7fe3c940e4b5 | 37 | #define GRID_SIZE 7 //(GRID_RADIUS*2+1) |
leuyentran | 0:7fe3c940e4b5 | 38 | #define NUM_GRID_X 17 |
leuyentran | 0:7fe3c940e4b5 | 39 | #define NUM_GRID_Y 16 |
leuyentran | 0:7fe3c940e4b5 | 40 | #define NUM_GRID 272 //(NUM_GRID_X*NUM_GRID_Y) |
leuyentran | 0:7fe3c940e4b5 | 41 | |
leuyentran | 0:7fe3c940e4b5 | 42 | |
leuyentran | 0:7fe3c940e4b5 | 43 | |
leuyentran | 0:7fe3c940e4b5 | 44 | #endif //GLOBAL_H |