/* Project-wide configurable constants */

#define WRITE_DIR "power_play"
#define SETTINGS_FILENAME "settings.json"

/* Window title */
#if RTC
# if DEVELOPER
#  define WINDOW_TITLE "Debug (Developer Build)"
# else
#  define WINDOW_TITLE "Debug"
# endif
#else
# if DEVELOPER
#  define WINDOW_TITLE "Power Play (Developer Build)"
# else
#  define WINDOW_TITLE "Power Play"
# endif
#endif

/* If we are not compiling in developer mode, assume resources are embedded as
 * a tar archive in the executable. Otherwise, look for resources in the file
 * system. */
#define RESOURCES_EMBEDDED (!DEVELOPER)
#define RESOURCE_RELOADING (DEVELOPER && !RESOURCES_EMBEDDED)

#define DEFAULT_CAMERA_WIDTH (7.0)
#define DEFAULT_CAMERA_HEIGHT (DEFAULT_CAMERA_WIDTH / (16.0 / 9.0))

#define PIXELS_PER_UNIT 256.0

#define GAME_FPS 50.0
#define GAME_TIMESCALE 1.0

/* How many ticks back in time should the user blend between?
 * <Delay ms> = <USER_INTERP_OFFSET_TICK_RATIO> * <Game tick rate>
 * E.g: At 1.5, the user thread will render 49.5ms back in time (if game thread runs at 30FPS)
 */
#define USER_INTERP_OFFSET_TICK_RATIO 1.1
#define USER_INTERP_ENABLED 1

/* ========================== *
 * Settings
 * ========================== */

/* TODO: Move these to user-configurable settings */

#define AUDIO_ENABLED 0
#define VSYNC_ENABLED 0
#define USER_FRAME_LIMIT 300.0
