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/

misc.h

Committer:
pkoirala3
Date:
2017-03-18
Revision:
1:e487713a5231
Parent:
0:9d6ea88b6d14

File content as of revision 1:e487713a5231:

#ifndef MISC_H__
    #define MISC_H__

    #define U_BUTTON 0
    #define R_BUTTON 1
    #define D_BUTTON 2
    #define L_BUTTON 3

    #define WINNER_P1   0
    #define WINNER_P2   1
    #define WINNER_TIE  2


    // Feel free to adjust any of these values as you see fit.
    #define WORLD_WIDTH  512
    #define WORLD_HEIGHT 512

    #define ACC_THRESHOLD 0.20

    #define BGRD_COL   0x000000
    #define FOOD_COL   0xFFFFFF
    #define P1_COL     0xBB0CE8
    #define P2_COL     0xFF0030
    #define BORDER_COL 0xFFFFFF
#endif //MISC_H__