Add animation smoothing

This commit is contained in:
Miloslav Ciz 2024-09-09 19:16:51 +02:00
parent e3d0b3219f
commit 03b703d454
5 changed files with 326 additions and 182 deletions

View file

@ -102,18 +102,28 @@
#ifndef LCR_SETTING_CAMERA_HEIGHT
/** Base height of the car follow camera, in 4ths of map block height. */
#define LCR_SETTING_CAMERA_HEIGHT 2
#define LCR_SETTING_CAMERA_HEIGHT 4
#endif
#ifndef LCR_SETTING_CAMERA_HEIGHT_BAND
/** Size of height band of the follow camera, in same units as base height. */
#define LCR_SETTING_CAMERA_HEIGHT_BAND 1
#define LCR_SETTING_CAMERA_HEIGHT_BAND 2
#endif
#ifndef LCR_SETTING_CAMERA_MAX_DISTANCE
/** Maximum horizontal distance of the car follow camera, in 4ths of map block
width. */
#define LCR_SETTING_CAMERA_MAX_DISTANCE 2
#define LCR_SETTING_CAMERA_MAX_DISTANCE 6
#endif
#ifndef LCR_SETTING_GHOST_COLOR
/** Color of the ghost car (in RGB565). */
#define LCR_SETTING_GHOST_COLOR 0xff00
#endif
#ifndef LCR_SETTING_SMOOTH_ANIMATIONS
/** Whether to smooth out animations (car physics, camera movement etc.). */
#define LCR_SETTING_SMOOTH_ANIMATIONS 1
#endif
#endif // guard