Initial publish

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Committer:
Noximilien
Date:
Tue May 07 15:22:35 2019 +0000
Revision:
40:e3bbda7444fa
Parent:
29:579e00b7f118
The Final, Submission Version. I have read and agreed to the academic integrity. SID:201160286

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Noximilien 21:0eb394495b8a 1 #ifndef CONSTANTS_H
Noximilien 21:0eb394495b8a 2 #define CONSTANTS_H
Noximilien 21:0eb394495b8a 3
Noximilien 28:35af3843de8f 4 #include "N5110.h"
Noximilien 29:579e00b7f118 5 /**
Noximilien 29:579e00b7f118 6 * This file containts the constants that are used accross the whole game,
Noximilien 29:579e00b7f118 7 */
Noximilien 28:35af3843de8f 8 const int screen_width = WIDTH;
Noximilien 28:35af3843de8f 9 const int screen_height = HEIGHT;
Noximilien 21:0eb394495b8a 10
Noximilien 21:0eb394495b8a 11 const int game_area_x = 0;
Noximilien 21:0eb394495b8a 12 const int game_area_y = 7;
Noximilien 21:0eb394495b8a 13 const int game_area_width = 84;
Noximilien 22:4dc3c95f2146 14 const int game_area_height = screen_height - game_area_y;
Noximilien 22:4dc3c95f2146 15
Noximilien 22:4dc3c95f2146 16 const float joy_threshold_max_y = 0.6;
Noximilien 22:4dc3c95f2146 17 const float joy_threshold_min_y = 0.4;
Noximilien 22:4dc3c95f2146 18 const float joy_threshold_max_x = 0.6;
Noximilien 22:4dc3c95f2146 19 const float joy_threshold_min_x = 0.4;
Noximilien 21:0eb394495b8a 20
Noximilien 21:0eb394495b8a 21 #endif