This repository has been archived on 2023-06-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2022FuncProg-project3-RPGEn.../lib/RPGEngine/Config.hs
2022-12-23 10:03:53 +01:00

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