Add setting (fog)

This commit is contained in:
Miloslav Číž 2019-10-04 22:40:41 +02:00
parent e69198c1e1
commit 642ba7112f
3 changed files with 21 additions and 0 deletions

12
TODO.txt Normal file
View File

@ -0,0 +1,12 @@
- port to GB Meta
- custom font
- GUI
- menu
- sounds (music?)
- level 2D map (with revealing, bitmap), special key for quick displaying map
- save/load (optional)
- enemies
- weapons
- more levels
- disable transparency for walls for performance (setting)?
- replace textures in distace with constant color for performance (setting)?

2
main.c
View File

@ -346,7 +346,9 @@ void SFG_pixelFunc(RCL_PixelInfo *pixel)
shadow += pixel->depth / (RCL_UNITS_PER_SQUARE * 2);
#endif
#if SFG_ENABLE_FOG
color = palette_minusValue(color,shadow);
#endif
}
else
{

View File

@ -85,4 +85,11 @@
*/
#define SFG_RAYCASTING_SUBSAMPLE 1
/**
Enables or disables fog (darkness) due to distance. Recommended to keep on
for good look, but can be turned off for performance.
*/
#define SFG_ENABLE_FOG 1
#endif // guard