Add FOV setting
This commit is contained in:
parent
5265552c57
commit
cfe2f711de
5 changed files with 22 additions and 4 deletions
3
TODO.txt
3
TODO.txt
|
@ -3,7 +3,8 @@ fuck issue trackers :D
|
||||||
=========== GENERAL ==============
|
=========== GENERAL ==============
|
||||||
|
|
||||||
- make some kinda repo for world record runs?
|
- make some kinda repo for world record runs?
|
||||||
- fix the ramp map again due to new physics
|
- fix the ramp map again due to new physics -- NOW it's almost good but it's
|
||||||
|
still possible to reach the finish at first jump, try to do something about it
|
||||||
- keyboard ghosting is an issue, particularly when initiating drift with brake
|
- keyboard ghosting is an issue, particularly when initiating drift with brake
|
||||||
(arrow keys must be used with S for braking for left drift to work) -- think
|
(arrow keys must be used with S for braking for left drift to work) -- think
|
||||||
about what to do about this? or leave as is?
|
about what to do about this? or leave as is?
|
||||||
|
|
4
assets.h
4
assets.h
|
@ -503,7 +503,7 @@ static const char *LCR_internalDataFile =
|
||||||
// TINY MAP 4:
|
// TINY MAP 4:
|
||||||
|
|
||||||
"#MLCtiny4;4321 2"
|
"#MLCtiny4;4321 2"
|
||||||
":*M2AJ"
|
":*M1AJ"
|
||||||
// box:
|
// box:
|
||||||
":=C2w:faca"
|
":=C2w:faca"
|
||||||
":=C6w2:fa1a"
|
":=C6w2:fa1a"
|
||||||
|
@ -527,7 +527,7 @@ static const char *LCR_internalDataFile =
|
||||||
":'C1D:fb11"
|
":'C1D:fb11"
|
||||||
":<C1C:fb11"
|
":<C1C:fb11"
|
||||||
// finish:
|
// finish:
|
||||||
":!Hex:!HeE"
|
":!Hgx:!HgE"
|
||||||
|
|
||||||
// TINY MAP 5:
|
// TINY MAP 5:
|
||||||
|
|
||||||
|
|
8
data
8
data
|
@ -156,3 +156,11 @@ details
|
||||||
#BLC1;
|
#BLC1;
|
||||||
#RLC1;00LC1;8bd6e314 0000527:0011:0149:0041:0039:0031:00b9:0031:0079:00a1:02d9:0081:0035:0031:0049:0271:0073:00a1:0043:0041:0099:0061:00a9:0091:0119:0031:0063:0041:0079:0031:0145:0041:0053:0171:00d3:0041:0083:0041:0043:00e1:0023:00a1:01c9:0081:0083:0051:0099:0011:0399:0031:00f3:0031:0069:0031
|
#RLC1;00LC1;8bd6e314 0000527:0011:0149:0041:0039:0031:00b9:0031:0079:00a1:02d9:0081:0035:0031:0049:0271:0073:00a1:0043:0041:0099:0061:00a9:0091:0119:0031:0063:0041:0079:0031:0145:0041:0053:0171:00d3:0041:0083:0041:0043:00e1:0023:00a1:01c9:0081:0083:0051:0099:0011:0399:0031:00f3:0031:0069:0031
|
||||||
#RLC1;00LC1;8bd6e314 0000523:0011:0139:0031:0159:00a1:0049:0031:00a9:0061:0089:0041:0049:0021:0119:0071:0025:0031:0039:01e1:0043:00a1:0059:0031:0073:0021:0049:0061:0059:0041:0043:01e1:0089:0061:00b9:0021:00d9:0021:0453:0141:00b3:0091:0119:0031:00c9:0041:03b9:0021:0093:0031:00f9:0021:0039:0021
|
#RLC1;00LC1;8bd6e314 0000523:0011:0139:0031:0159:00a1:0049:0031:00a9:0061:0089:0041:0049:0021:0119:0071:0025:0031:0039:01e1:0043:00a1:0059:0031:0073:0021:0049:0061:0059:0041:0043:01e1:0089:0061:00b9:0021:00d9:0021:0453:0141:00b3:0091:0119:0031:00c9:0041:03b9:0021:0093:0031:00f9:0021:0039:0021
|
||||||
|
#RLCtiny4;00LCtiny4;1787f12a 0000122:0011:01f9:0101:0093:00b1:0073:0051:00f9:0051:0073:0041
|
||||||
|
#RLCtiny4;00LCtiny4;1787f12a 0000109:0141:0099:00e1:0149:0041:01e9:0011
|
||||||
|
#RLCtiny4;00LCtiny4;1787f12a 0000107:00f1:0079:0041:0039:0091:0089:0061:0099:0041:0069:0021:0059:0021
|
||||||
|
#RLCtiny4;00LCtiny4;343017ba 0000146:01e1:00b9:00d1:0099:0051:0109:0021
|
||||||
|
#RLCtiny4;00LCtiny4;343017ba 0000123:0011:0023:00c1:0029:0101:0049:0041:0039:0051:0049:0031
|
||||||
|
#RLCtiny4;00LCtiny4;343017ba 0000137:0013:0131:0019:0191:0093:0041:0129:0011:0319
|
||||||
|
#RLCtiny4;00LCtiny4;343017ba 0000120:0011:00f9:0051:0029:0091:0059:0041:0049:0031:00b9:0031:02e9
|
||||||
|
#RLCtiny4;00LCtiny4;343017ba 0000118:0011:0099:0021:0039:00c1:00d9:0061:0049:0031:0383
|
||||||
|
|
|
@ -1210,7 +1210,7 @@ uint8_t LCR_rendererInit(void)
|
||||||
LCR_renderer.ghostModel->transform.scale =
|
LCR_renderer.ghostModel->transform.scale =
|
||||||
LCR_renderer.carModel->transform.scale;
|
LCR_renderer.carModel->transform.scale;
|
||||||
|
|
||||||
LCR_renderer.ghostModel->transform.translation.x -= LCR_GAME_UNIT / 4;
|
LCR_renderer.ghostModel->transform.translation.x -= LCR_GAME_UNIT / 4; // why is this here? TODO
|
||||||
|
|
||||||
#if LCR_ANIMATE_CAR
|
#if LCR_ANIMATE_CAR
|
||||||
for (int i = 0; i < LCR_CAR_VERTEX_COUNT * 3; ++i)
|
for (int i = 0; i < LCR_CAR_VERTEX_COUNT * 3; ++i)
|
||||||
|
@ -1250,6 +1250,9 @@ LCR_renderer.ghostModel->transform.translation.x -= LCR_GAME_UNIT / 4;
|
||||||
S3L_sceneInit(
|
S3L_sceneInit(
|
||||||
LCR_renderer.models,LCR_RENDERER_MODEL_COUNT,&LCR_renderer.scene);
|
LCR_renderer.models,LCR_RENDERER_MODEL_COUNT,&LCR_renderer.scene);
|
||||||
|
|
||||||
|
LCR_renderer.scene.camera.focalLength =
|
||||||
|
(LCR_SETTING_CAMERA_FOCAL_LENGTH * S3L_F) / 16;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,12 @@
|
||||||
#define LCR_SETTING_FPS 30
|
#define LCR_SETTING_FPS 30
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef LCR_SETTING_CAMERA_FOCAL_LENGTH
|
||||||
|
/** Adjusts camera's focal length, which affects field of view (FOV). The
|
||||||
|
value must be in range from 1 to 32. */
|
||||||
|
#define LCR_SETTING_CAMERA_FOCAL_LENGTH 17
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef LCR_SETTING_FREE_CAMERA_SPEED
|
#ifndef LCR_SETTING_FREE_CAMERA_SPEED
|
||||||
/** Move speed of free camera, in 1/8ths of block length. */
|
/** Move speed of free camera, in 1/8ths of block length. */
|
||||||
#define LCR_SETTING_FREE_CAMERA_SPEED 50
|
#define LCR_SETTING_FREE_CAMERA_SPEED 50
|
||||||
|
|
Loading…
Reference in a new issue