Add animation smoothing
This commit is contained in:
parent
e3d0b3219f
commit
03b703d454
5 changed files with 326 additions and 182 deletions
16
settings.h
16
settings.h
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue