Add horizon shift
This commit is contained in:
parent
8d0adf66eb
commit
9485a7cd95
3 changed files with 8 additions and 2 deletions
2
TODO.txt
2
TODO.txt
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
- replay validation
|
- replay validation
|
||||||
- add time slow down setting
|
- add time slow down setting
|
||||||
- the horizon on background seems too low? maybe add setting to shift it a bit?
|
|
||||||
- add argc/argv to gameInit? could be used to quickly start maps, verify
|
- add argc/argv to gameInit? could be used to quickly start maps, verify
|
||||||
replays etc.
|
replays etc.
|
||||||
- maybe each map could have a target time embedded: when beaten, the map would
|
- maybe each map could have a target time embedded: when beaten, the map would
|
||||||
|
@ -27,6 +26,7 @@
|
||||||
=========== HANDLED ==============
|
=========== HANDLED ==============
|
||||||
|
|
||||||
- allow stopping car rotation in air like in Trackmania
|
- allow stopping car rotation in air like in Trackmania
|
||||||
|
- the horizon on background seems too low? maybe add setting to shift it a bit?
|
||||||
- replay format
|
- replay format
|
||||||
- prevent time overflow! stop incrementing level frame once it's at maximum
|
- prevent time overflow! stop incrementing level frame once it's at maximum
|
||||||
- car shadow? probably would have to be done as screen space effect with
|
- car shadow? probably would have to be done as screen space effect with
|
||||||
|
|
|
@ -1312,7 +1312,8 @@ void LCR_rendererDrawSky(int sky, S3L_Unit offsetH, S3L_Unit offsetV)
|
||||||
anchorPoint[0] += 2 * LCR_IMAGE_SIZE * LCR_SETTING_SKY_SIZE;
|
anchorPoint[0] += 2 * LCR_IMAGE_SIZE * LCR_SETTING_SKY_SIZE;
|
||||||
|
|
||||||
anchorPoint[1] =
|
anchorPoint[1] =
|
||||||
(LCR_EFFECTIVE_RESOLUTION_Y) / 3 - // 3: we place the center a bit more up
|
(LCR_EFFECTIVE_RESOLUTION_Y) / 2 - // 3: we place the center a bit more up
|
||||||
|
(LCR_SETTING_HORIZON_SHIFT * LCR_EFFECTIVE_RESOLUTION_Y) / 16 -
|
||||||
(LCR_EFFECTIVE_RESOLUTION_Y * offsetV) / S3L_F
|
(LCR_EFFECTIVE_RESOLUTION_Y * offsetV) / S3L_F
|
||||||
- LCR_IMAGE_SIZE * LCR_SETTING_SKY_SIZE;
|
- LCR_IMAGE_SIZE * LCR_SETTING_SKY_SIZE;
|
||||||
|
|
||||||
|
|
|
@ -204,4 +204,9 @@
|
||||||
#define LCR_SETTING_REPLAY_MAX_SIZE 256
|
#define LCR_SETTING_REPLAY_MAX_SIZE 256
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef LCR_SETTING_HORIZON_SHIFT
|
||||||
|
/** Vertical offset of the background horizon, 1/16th of screen height. */
|
||||||
|
#define LCR_SETTING_HORIZON_SHIFT 5
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // guard
|
#endif // guard
|
||||||
|
|
Loading…
Reference in a new issue