Implement different shadow resolutions
This commit is contained in:
@@ -8,6 +8,7 @@ module Dodge.Config.Data (
|
||||
, volume_sound
|
||||
, volume_music
|
||||
, wall_textured
|
||||
, shadow_resolution
|
||||
) where
|
||||
|
||||
import Data.Aeson
|
||||
@@ -19,11 +20,12 @@ import System.Directory
|
||||
import Control.Lens
|
||||
|
||||
data Configuration = Configuration
|
||||
{ _volume_master :: Float
|
||||
, _volume_sound :: Float
|
||||
, _volume_music :: Float
|
||||
, _wall_textured :: Bool
|
||||
}
|
||||
{ _volume_master :: Float
|
||||
, _volume_sound :: Float
|
||||
, _volume_music :: Float
|
||||
, _wall_textured :: Bool
|
||||
, _shadow_resolution :: Int -- ^ Higher values divide the screen size, i.e. make the resolution worse
|
||||
}
|
||||
deriving (Generic, Show)
|
||||
|
||||
makeLenses ''Configuration
|
||||
@@ -38,5 +40,6 @@ defaultConfig = Configuration
|
||||
, _volume_sound = 1
|
||||
, _volume_music = 1
|
||||
, _wall_textured = False
|
||||
, _shadow_resolution = 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user