Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
Generated on Wed Dec 20 2023 20:30:17 by
