Dmitrijs Griskovs / Mbed 2 deprecated el17dg

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers constants.h Source File

constants.h

00001 #ifndef CONSTANTS_H
00002 #define CONSTANTS_H
00003 
00004 #include "N5110.h"
00005 /**
00006  * This file containts the constants that are used accross the whole game,
00007  */
00008 const int screen_width = WIDTH;
00009 const int screen_height = HEIGHT;    
00010 
00011 const int game_area_x = 0;
00012 const int game_area_y = 7;
00013 const int game_area_width = 84;
00014 const int game_area_height = screen_height - game_area_y;
00015 
00016 const float joy_threshold_max_y = 0.6;
00017 const float joy_threshold_min_y = 0.4;
00018 const float joy_threshold_max_x = 0.6;
00019 const float joy_threshold_min_x = 0.4;
00020 
00021 #endif