The classic dueling tanks game for mbed.

Dependencies:   4DGL-uLCD-SE DRV2605 EthernetInterface Game_Synchronizer MMA8452 SDFileSystem SparkfunAnalogJoystick mbed-rtos mbed wave_player

Fork of 2035_Tanks_Shell by ECE2035 Spring 2015 TA

globals.h

Committer:
macenzofan
Date:
2017-03-13
Revision:
28:8dbb85f35be6
Parent:
27:bd55ab4d137c

File content as of revision 28:8dbb85f35be6:

#ifndef GLOBAL_H__
#define GLOBAL_H__

#define SKY_COLOR  0x7EC0EE
#define GND_COLOR  0x66CD00
#define TANK_RED   0xCD0000
#define TANK_BLUE  0x000080
#define BROWN      0x7E562E
#define TREE       0x139216
#define BLT_COLOR  0x090E16
#define LT_BLUE    0x4C80FF
#define LT_RED     0xFFABAA
#define BARREL_GREY 0x0B090B
#define ORANGE     0xFF6A00
#define YELLOW     0xFFBA00
#define LT_GREY    0xD1C9D0
#define MED_GREY   0x787377
#define DRK_GREY   0x473F43
#define PIX        0x7EC1F0
#define SHRUB      0x2D5D00

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

#define TURN_P1 0
#define TURN_P2 1

#define ACC_THRESHOLD 0.25

#define PI  3.1415926535797


#endif //GLOBAL_H__