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 ECE2035 Spring 2015 TA

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/

Committer:
pkoirala3
Date:
Sat Mar 18 14:55:51 2017 +0000
Revision:
1:e487713a5231
Parent:
0:9d6ea88b6d14
EC 2035 MiniProject AGARIO

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jford38 0:9d6ea88b6d14 1 #ifndef MISC_H__
pkoirala3 1:e487713a5231 2 #define MISC_H__
jford38 0:9d6ea88b6d14 3
pkoirala3 1:e487713a5231 4 #define U_BUTTON 0
pkoirala3 1:e487713a5231 5 #define R_BUTTON 1
pkoirala3 1:e487713a5231 6 #define D_BUTTON 2
pkoirala3 1:e487713a5231 7 #define L_BUTTON 3
jford38 0:9d6ea88b6d14 8
pkoirala3 1:e487713a5231 9 #define WINNER_P1 0
pkoirala3 1:e487713a5231 10 #define WINNER_P2 1
pkoirala3 1:e487713a5231 11 #define WINNER_TIE 2
jford38 0:9d6ea88b6d14 12
jford38 0:9d6ea88b6d14 13
pkoirala3 1:e487713a5231 14 // Feel free to adjust any of these values as you see fit.
pkoirala3 1:e487713a5231 15 #define WORLD_WIDTH 512
pkoirala3 1:e487713a5231 16 #define WORLD_HEIGHT 512
jford38 0:9d6ea88b6d14 17
pkoirala3 1:e487713a5231 18 #define ACC_THRESHOLD 0.20
jford38 0:9d6ea88b6d14 19
pkoirala3 1:e487713a5231 20 #define BGRD_COL 0x000000
pkoirala3 1:e487713a5231 21 #define FOOD_COL 0xFFFFFF
pkoirala3 1:e487713a5231 22 #define P1_COL 0xBB0CE8
pkoirala3 1:e487713a5231 23 #define P2_COL 0xFF0030
pkoirala3 1:e487713a5231 24 #define BORDER_COL 0xFFFFFF
jford38 0:9d6ea88b6d14 25 #endif //MISC_H__