Skip to content

Commit

Permalink
make the config and other files more game-independent
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikolaj committed Jul 27, 2011
1 parent c3b0c2e commit 990be33
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion LambdaHack.cabal
Expand Up @@ -5,7 +5,7 @@ license: BSD3
license-file: LICENSE license-file: LICENSE
tested-with: GHC==7.0.3 tested-with: GHC==7.0.3
data-files: LICENSE, CREDITS, DESIGN.markdown, PLAYING.markdown, data-files: LICENSE, CREDITS, DESIGN.markdown, PLAYING.markdown,
README.markdown, src/LambdaHack.config.default, LambdaHack.scores README.markdown, src/LambdaHack.config.default, scores
author: Andres Loeh <mail@andres-loeh.de> author: Andres Loeh <mail@andres-loeh.de>
maintainer: Andres Loeh <mail@andres-loeh.de> maintainer: Andres Loeh <mail@andres-loeh.de>
description: a small roguelike game description: a small roguelike game
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Config.hs
Expand Up @@ -90,7 +90,7 @@ getItems (CP config) s =
else error $ "unknown config section: " ++ s else error $ "unknown config section: " ++ s


-- | Looks up a file path in the config file and makes it absolute. -- | Looks up a file path in the config file and makes it absolute.
-- If the LambdaHack configuration directory exists, -- If the game's configuration directory exists,
-- the path is appended to it; otherwise, it's appended -- the path is appended to it; otherwise, it's appended
-- to the current directory. -- to the current directory.
getFile :: CP -> CF.SectionSpec -> CF.OptionSpec -> IO FilePath getFile :: CP -> CF.SectionSpec -> CF.OptionSpec -> IO FilePath
Expand Down
2 changes: 1 addition & 1 deletion src/FOV/Shadow.hs
Expand Up @@ -11,7 +11,7 @@ import Level


-- | A restrictive variant of Recursive Shadow Casting FOV with infinite range. -- | A restrictive variant of Recursive Shadow Casting FOV with infinite range.
-- It's not designed for dungeons with diagonal walls, so they block visibility, -- It's not designed for dungeons with diagonal walls, so they block visibility,
-- though they don't block movement. Such cases appear in LambdaHack only -- though they don't block movement. Such cases appear in the game only
-- when two corridors touch diagonally by accident and on the random pillars -- when two corridors touch diagonally by accident and on the random pillars
-- levels. -- levels.


Expand Down
14 changes: 7 additions & 7 deletions src/LambdaHack.config.default
@@ -1,11 +1,11 @@
; This is the default LambdaHack config file, included in the binary itself. ; This is the default config file, included in the binary itself.
; LambdaHack looks for the user config file in ~/.LambdaHack/LambdaHack.config. ; The game looks for the user config file in ~/.LambdaHack/LambdaHack.config.
; LambdaHack restricts the config file format by insisting that ; We restricts the config file format by insisting that
; options are case-sensitive and permitting only ';' comments. ; options are case-sensitive and permitting only ';' comments.


; If you contribute to LambdaHack, please create directory ~/.LambdaHack/ ; If you contribute to the game, please create directory ~/.LambdaHack/
; as described in README.markdown. In this way, you will not accidentally ; as described in README.markdown. In this way, you will not accidentally
; commit your private high scores (nor your save files) to LambdaHack ; commit your private high scores (nor your save files) to the game
; git repository. ; git repository.


[dungeon] [dungeon]
Expand All @@ -25,8 +25,8 @@ fovRadius: 40
; paths to various game files; relative to ~/.LambdaHack/ ; paths to various game files; relative to ~/.LambdaHack/
; (or analogous prefixes for other OSes, see getAppUserDataDirectory) ; (or analogous prefixes for other OSes, see getAppUserDataDirectory)
[files] [files]
highScores: LambdaHack.scores highScores: scores
saveGame: LambdaHack.save saveGame: save


[heroes] [heroes]
HeroName_0: you HeroName_0: you
Expand Down

0 comments on commit 990be33

Please sign in to comment.