Licar/constants.h

35 lines
873 B
C
Raw Normal View History

2023-08-03 21:12:23 +02:00
#ifndef _LCR_CONSTANTS_H
#define _LCR_CONSTANTS_H
2023-09-17 13:21:19 +02:00
#include "settings.h"
2023-09-11 20:56:04 +02:00
#define LCR_EFFECTIVE_RESOLUTION_X \
(LCR_SETTING_RESOLUTION_X / LCR_SETTING_RESOLUTION_SUBDIVIDE)
#define LCR_EFFECTIVE_RESOLUTION_Y \
(LCR_SETTING_RESOLUTION_Y / LCR_SETTING_RESOLUTION_SUBDIVIDE)
2023-09-17 13:21:19 +02:00
#define LCR_FREE_CAMERA_STEP \
(LCR_SETTING_FREE_CAMERA_SPEED / LCR_SETTING_FPS)
2024-08-29 15:38:44 +02:00
#if LCR_FREE_CAMERA_STEP == 0
#define LCR_FREE_CAMERA_STEP 1
#endif
2023-09-17 15:42:46 +02:00
#define LCR_FREE_CAMERA_TURN_STEP \
(LCR_SETTING_FREE_CAMERA_TURN_SPEED / LCR_SETTING_FPS)
2024-07-24 20:28:57 +02:00
#define LCR_MAP_SIZE_BLOCKS 64
2024-09-05 22:51:11 +02:00
/** Physics FPS, i.e. the number of physics ticks per second. */
2024-09-20 15:22:18 +02:00
#define LCR_RACING_FPS 30
2024-09-05 22:51:11 +02:00
#define LCR_RACING_TICK_MS (1000 / LCR_RACING_FPS)
2024-09-01 16:10:15 +02:00
#define LCR_ANIMATE_CAR (LCR_SETTING_CAR_ANIMATION_SUBDIVIDE != 0)
2023-08-03 21:12:23 +02:00
/** Maximum number of triangles of a block shape. */
2024-07-23 19:57:29 +02:00
#define LCR_MAP_BLOCK_SHAPE_MAX_BYTES 80
2023-08-03 21:12:23 +02:00
#endif