code made complaitn with the 'max 80-char per line' rule

This commit is contained in:
SlyVTT 2023-07-09 21:53:07 +02:00
parent 05f3f8ff4f
commit 396c9c9bfe
3 changed files with 10 additions and 5 deletions

View file

@ -41,7 +41,8 @@ Game game = {
{
if (game.screenshot && usb_is_open()) {
#ifdef GRAYMODEOK // This is a trick, if GRAYMODEOK is defined then we make the code accessible
#ifdef GRAYMODEOK // This is a trick, if GRAYMODEOK is defined then
// we make the code accessible
if (dgray_enabled())
usb_fxlink_screenshot_gray(false);
@ -49,7 +50,8 @@ Game game = {
#endif
usb_fxlink_screenshot(false); // else we just let the usual screeshot function
// else we just let the usual screeshot function
usb_fxlink_screenshot(false);
game.screenshot = false;
}

View file

@ -93,7 +93,8 @@ void render_map(Player *player, Map *map_level) {
// This is for debut only
// I let this portion of code to indicate how the walkable layer can be use to know if tile is accessible and/or if specific behaviour is expected
// I let this portion of code to indicate how the walkable layer can be use
// to know if tile is accessible and/or if specific behaviour is expected
// juste uncomment to activate
/*
@ -108,7 +109,8 @@ void render_map(Player *player, Map *map_level) {
int walkable = map_level->walkable[currentIndex];
// for DEBUG ONLY, we print the ID of the current tile
if (walkable!=0) dprint(x*T_WIDTH-mx + 4, y*T_HEIGHT-my+4, C_RED, "%d", walkable );
if (walkable!=0) dprint(x*T_WIDTH-mx + 4, y*T_HEIGHT-my+4,
C_RED, "%d", walkable );
}
}
}

View file

@ -6,7 +6,8 @@
typedef struct {
/* the ID of the tile, as per tiled configuration, first is ID=0, then line by line, each line left to right, +1 at each tile.*/
/* the ID of the tile, as per tiled configuration, first is ID=0, then line
by line, each line left to right, +1 at each tile.*/
int tileID;
/* maximum speed on that tile for the player */
/* Note : Speed = 0 means that the tile is not walkable */