mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-22 15:28:49 -05:00
Add setting (fog)
This commit is contained in:
parent
e69198c1e1
commit
642ba7112f
12
TODO.txt
Normal file
12
TODO.txt
Normal 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
2
main.c
@ -346,7 +346,9 @@ void SFG_pixelFunc(RCL_PixelInfo *pixel)
|
|||||||
shadow += pixel->depth / (RCL_UNITS_PER_SQUARE * 2);
|
shadow += pixel->depth / (RCL_UNITS_PER_SQUARE * 2);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if SFG_ENABLE_FOG
|
||||||
color = palette_minusValue(color,shadow);
|
color = palette_minusValue(color,shadow);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -85,4 +85,11 @@
|
|||||||
*/
|
*/
|
||||||
#define SFG_RAYCASTING_SUBSAMPLE 1
|
#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
|
#endif // guard
|
||||||
|
Loading…
Reference in New Issue
Block a user