Collab_RPG/src/config.h
2024-07-30 18:19:49 +02:00

52 lines
1.1 KiB
C

#ifndef CONFIG_H
#define CONFIG_H
#define USB_FEATURE 0
#define DEBUGMODE 1
#include <gint/display.h>
/* Enable GrayMode on either FX and FX_G3A targets */
#if GINT_RENDER_MONO && defined(COLOR2BIT)
#define GRAYMODEOK 1
#endif
#if GINT_RENDER_RGB
/* The tile size */
#define T_HEIGHT 16
#define T_WIDTH 16
/* The size of a pixel */
#define PXSIZE 2
#define PATH_COLOR C_RED
/* The size of the player */
#define P_WIDTH 16
#define P_HEIGHT 16
#else
/* The tile size */
#define T_HEIGHT 8
#define T_WIDTH 8
/* The pixel size */
#define PXSIZE 1
#define PATH_COLOR C_BLACK
/* The player size */
#define P_WIDTH 8
#define P_HEIGHT 8
#endif
/* SPEED should NOT be 8 or bigger: it may cause bugs when handling
* collisions! */
#define SPEED (PXSIZE * 2)
/* The face size (in the dialogs) */
#define F_WIDTH (32 * PXSIZE)
#define F_HEIGHT (32 * PXSIZE)
/* the color of the text to go to the next dialog phase */
/* it improves readability to have something lighter */
#if GRAYMODEOK || (GINT_RENDER_RGB && !defined(COLOR1BIT))
#define NEXT_COLOR C_DARK
#else
#define NEXT_COLOR C_BLACK
#endif
#endif