#9 Added level selection render
This commit is contained in:
parent
0786a41006
commit
2055ef234e
17 changed files with 401 additions and 34 deletions
12
lib/RPGEngine/Input/LvlSelect.hs
Normal file
12
lib/RPGEngine/Input/LvlSelect.hs
Normal file
|
@ -0,0 +1,12 @@
|
|||
module RPGEngine.Input.LvlSelect
|
||||
( getLvlList
|
||||
) where
|
||||
|
||||
import GHC.IO (unsafePerformIO)
|
||||
import System.Directory (getDirectoryContents)
|
||||
|
||||
lvlFolder :: FilePath
|
||||
lvlFolder = "levels"
|
||||
|
||||
getLvlList :: [FilePath]
|
||||
getLvlList = unsafePerformIO $ getDirectoryContents lvlFolder
|
Reference in a new issue