Add menu option for auto camera rotation

This commit is contained in:
2021-09-11 20:22:44 +01:00
parent f2553ded0e
commit ea333a363b
5 changed files with 34 additions and 22 deletions
+3
View File
@@ -12,6 +12,7 @@ module Dodge.Config.Data (
, resolution_factor
, windowX
, windowY
, rotate_to_wall
) where
import Data.Aeson
@@ -27,6 +28,7 @@ data Configuration = Configuration
, _resolution_factor :: Int -- ^ Higher values divide screen size, i.e. make the resolution worse
, _windowX :: Float
, _windowY :: Float
, _rotate_to_wall :: Bool
}
deriving (Generic, Show)
makeLenses ''Configuration
@@ -46,4 +48,5 @@ defaultConfig = Configuration
, _resolution_factor = 1
, _windowX = 800
, _windowY = 600
, _rotate_to_wall = True
}