mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2024-12-28 04:23:42 +01:00
code made complaitn with the 'max 80-char per line' rule
This commit is contained in:
parent
05f3f8ff4f
commit
396c9c9bfe
3 changed files with 10 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue