Initial publish

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

game/constants.h

Committer:
Noximilien
Date:
2019-04-10
Revision:
28:35af3843de8f
Parent:
26:676874c42883
Child:
29:579e00b7f118

File content as of revision 28:35af3843de8f:

#ifndef CONSTANTS_H
#define CONSTANTS_H

#include "N5110.h"
/**@brief
  * This file containts the constants that are used accross the whole game,
  */
const int screen_width = WIDTH;
const int screen_height = HEIGHT;    

const int game_area_x = 0;
const int game_area_y = 7;
const int game_area_width = 84;
const int game_area_height = screen_height - game_area_y;

const float joy_threshold_max_y = 0.6;
const float joy_threshold_min_y = 0.4;
const float joy_threshold_max_x = 0.6;
const float joy_threshold_min_x = 0.4;

#endif