Add minor improvements

This commit is contained in:
Miloslav Ciz 2025-06-03 19:48:52 +02:00
parent 7aca665d8e
commit ab8bcd4605
8 changed files with 53 additions and 44 deletions

View file

@ -4,9 +4,10 @@
duplication of code.
*/
// TODO: quality presets?
#include <stdint.h>
#include <stdio.h>
#if PRESET_QUALITY == 1 // ultra low
#if PRESET_QUALITY == 1 // ultra low
#define LCR_SETTING_RESOLUTION_X 256
#define LCR_SETTING_RESOLUTION_Y 200
#define LCR_SETTING_POTATO_GRAPHICS 1
@ -18,7 +19,7 @@
#define LCR_SETTING_TEXTURE_SUBSAMPLE 16
#define LCR_SETTING_FOG 0
#define LCR_SETTING_MUSIC 0
#elif PRESET_QUALITY == 2 // low
#elif PRESET_QUALITY == 2 // low
#define LCR_SETTING_RESOLUTION_X 512
#define LCR_SETTING_RESOLUTION_Y 400
#define LCR_SETTING_RESOLUTION_SUBDIVIDE 2
@ -28,7 +29,7 @@
#define LCR_SETTING_TEXTURE_SUBSAMPLE 8
#define LCR_SETTING_FOG 0
#define LCR_SETTING_FPS 30
#elif PRESET_QUALITY == 3 // normal
#elif PRESET_QUALITY == 3 // normal
#define LCR_SETTING_RESOLUTION_X 800
#define LCR_SETTING_RESOLUTION_Y 600
#define LCR_SETTING_RESOLUTION_SUBDIVIDE 1
@ -38,7 +39,7 @@
#define LCR_SETTING_TEXTURE_SUBSAMPLE 4
#define LCR_SETTING_FOG 0
#define LCR_SETTING_FPS 30
#elif PRESET_QUALITY == 4 // high
#elif PRESET_QUALITY == 4 // high
#define LCR_SETTING_RESOLUTION_X 1024
#define LCR_SETTING_RESOLUTION_Y 768
#define LCR_SETTING_RESOLUTION_SUBDIVIDE 1
@ -50,9 +51,6 @@
#define LCR_SETTING_FPS 45
#endif
#include <stdint.h>
#include <stdio.h>
#define DATA_FILE_NAME "data"
FILE *dataFile = 0;