ECE 2035 AgarIO MiniProject
Dependencies: 4DGL-uLCD-SE ECE2035_Agar_Shell EthernetInterface Game_Synchronizer MMA8452 SDFileSystem Sound USBDevice mbed-rtos mbed wave_player
Fork of ECE2035_Agar_Shell by
This program is a MiniProject given in ECE 2035. This is to design and program the multiplayer ethernet based AGAR.IO mbed game. Starting code is given by the instructor to aid student to complete the project. It utilize uLCD, Accelerometer, pushbuttons, sdFileSystem, ethernetBreakoutBoard, speaker in mBED LPC1768. It uses the similar concept to the Game http://agar.io/
misc.h@0:9d6ea88b6d14, 2016-03-20 (annotated)
- Committer:
- jford38
- Date:
- Sun Mar 20 03:38:40 2016 +0000
- Revision:
- 0:9d6ea88b6d14
- Child:
- 1:e487713a5231
Shell code for Spring 2016 Game "Agar.gt"
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jford38 | 0:9d6ea88b6d14 | 1 | #ifndef MISC_H__ |
jford38 | 0:9d6ea88b6d14 | 2 | #define MISC_H__ |
jford38 | 0:9d6ea88b6d14 | 3 | |
jford38 | 0:9d6ea88b6d14 | 4 | #define U_BUTTON 0 |
jford38 | 0:9d6ea88b6d14 | 5 | #define R_BUTTON 1 |
jford38 | 0:9d6ea88b6d14 | 6 | #define D_BUTTON 2 |
jford38 | 0:9d6ea88b6d14 | 7 | #define L_BUTTON 3 |
jford38 | 0:9d6ea88b6d14 | 8 | |
jford38 | 0:9d6ea88b6d14 | 9 | #define WINNER_P1 0 |
jford38 | 0:9d6ea88b6d14 | 10 | #define WINNER_P2 1 |
jford38 | 0:9d6ea88b6d14 | 11 | #define WINNER_TIE 2 |
jford38 | 0:9d6ea88b6d14 | 12 | |
jford38 | 0:9d6ea88b6d14 | 13 | |
jford38 | 0:9d6ea88b6d14 | 14 | // Feel free to adjust any of these values as you see fit. |
jford38 | 0:9d6ea88b6d14 | 15 | #define WORLD_WIDTH 256 |
jford38 | 0:9d6ea88b6d14 | 16 | #define WORLD_HEIGHT 256 |
jford38 | 0:9d6ea88b6d14 | 17 | |
jford38 | 0:9d6ea88b6d14 | 18 | #define ACC_THRESHOLD 0.20 |
jford38 | 0:9d6ea88b6d14 | 19 | |
jford38 | 0:9d6ea88b6d14 | 20 | #define BGRD_COL 0x0F0066 |
jford38 | 0:9d6ea88b6d14 | 21 | #define FOOD_COL 0xFFFFFF |
jford38 | 0:9d6ea88b6d14 | 22 | #define P1_COL 0xBB0CE8 |
jford38 | 0:9d6ea88b6d14 | 23 | #define P2_COL 0xFF0030 |
jford38 | 0:9d6ea88b6d14 | 24 | #define BORDER_COL 0xFFFFFF |
jford38 | 0:9d6ea88b6d14 | 25 | #endif //MISC_H__ |