54 lines
No EOL
1.1 KiB
Haskell
54 lines
No EOL
1.1 KiB
Haskell
-- This module should ultimately be replaced by a config file parser
|
|
module RPGEngine.Config
|
|
-- All entries are exported
|
|
where
|
|
|
|
import Graphics.Gloss
|
|
|
|
----------------------- Window configuration -------------------------
|
|
|
|
-- Dimensions for main window
|
|
winDimensions :: (Int, Int)
|
|
winDimensions = (1280, 720)
|
|
|
|
-- Offsets for main window
|
|
winOffsets :: (Int, Int)
|
|
winOffsets = (0, 0)
|
|
|
|
-- Game background color
|
|
bgColor :: Color
|
|
bgColor = makeColor (37 / 256) (19 / 256) (26 / 256) 1
|
|
|
|
-- Text color
|
|
textColor :: Color
|
|
textColor = white
|
|
|
|
-- Color of selection
|
|
selectionColor :: Color
|
|
selectionColor = red
|
|
|
|
-- Default scale
|
|
zoom :: Float
|
|
zoom = 5
|
|
|
|
-- UI scale, number between 0 (small) and 1 (big)
|
|
uizoom :: Float
|
|
uizoom = 0.5
|
|
|
|
-- Resolution of the texture
|
|
resolution :: Float
|
|
resolution = 16
|
|
|
|
-- Location of the assets folder containing all images
|
|
assetsFolder :: FilePath
|
|
assetsFolder = "assets/"
|
|
|
|
-- Location of the level folder containing all levels
|
|
levelFolder :: FilePath
|
|
levelFolder = "levels/"
|
|
|
|
------------------------- Game configuration -------------------------
|
|
|
|
-- How many items can a player keep in their inventory?
|
|
inventorySize :: Int
|
|
inventorySize = 5 |