Restructuring, #9
This commit is contained in:
parent
2055ef234e
commit
dab6fadad4
41 changed files with 941 additions and 680 deletions
36
lib/RPGEngine/Config.hs
Normal file
36
lib/RPGEngine/Config.hs
Normal file
|
@ -0,0 +1,36 @@
|
|||
-- 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 = white
|
||||
|
||||
-- Default scale
|
||||
zoom :: Float
|
||||
zoom = 5.0
|
||||
|
||||
-- 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/"
|
Reference in a new issue