75 lines
2.0 KiB
C
75 lines
2.0 KiB
C
/* Project-wide configurable constants */
|
|
|
|
#define WRITE_DIR "power_play"
|
|
#define SETTINGS_FILENAME "settings.txt"
|
|
|
|
/* 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 IMAGE_PIXELS_PER_UNIT 256.0
|
|
|
|
/* 256^2 = 65536 buckets */
|
|
#define SPACE_CELL_BUCKETS_SQRT (256)
|
|
#define SPACE_CELL_SIZE 1.0f
|
|
|
|
#define SIM_TICKS_PER_SECOND 100
|
|
#define SIM_TIMESCALE 1
|
|
|
|
#define SIM_PHYSICS_SUBSTEPS 4
|
|
#define SIM_PHYSICS_ENABLE_WARM_STARTING 1
|
|
#define SIM_PHYSICS_ENABLE_RELAXATION 1
|
|
#define SIM_PHYSICS_ENABLE_TOI 1
|
|
|
|
#define SIM_PHYSICS_ENABLE_COLLISION 1
|
|
#define SIM_SPAWN_TESTENT 0
|
|
#define SIM_PLAYER_AIM 1
|
|
|
|
#define SIM_MAX_LINEAR_VELOCITY 500
|
|
#define SIM_MAX_ANGULAR_VELOCITY (TAU * 20)
|
|
|
|
/* How many ticks back in time should the user blend between?
|
|
* <Delay ms> = <USER_INTERP_RATIO> * <Tick interval>
|
|
* E.g: At 1.5, the user thread will render 75ms back in time if the sim runs at 50tps
|
|
*/
|
|
#define USER_INTERP_RATIO 1.5
|
|
#define USER_INTERP_ENABLED 1
|
|
|
|
#define COLLIDER_DEBUG 0
|
|
#define COLLIDER_DEBUG_DETAILED 0
|
|
#define COLLIDER_DEBUG_DETAILED_DRAW_MENKOWSKI 0
|
|
|
|
/* If enabled, bitbuffs will insert/verify magic numbers & length for each read & write */
|
|
#define BITBUFF_DEBUG 0
|
|
#define BITBUFF_TEST RTC
|
|
|
|
/* ========================== *
|
|
* Settings
|
|
* ========================== */
|
|
|
|
/* TODO: Move these to user-configurable settings */
|
|
|
|
#define AUDIO_ENABLED 0
|
|
#define VSYNC_ENABLED 0
|
|
#define USER_FPS_LIMIT 300
|