Skip to content

Commit

Permalink
use strictly background color for terrain
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo committed Dec 4, 2023
1 parent b8d37a9 commit 9af3d35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Swarm/Game/Entity/Cosmetic/Assignment.hs
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ worldAttributes =
-- * Terrain

dirt :: (TerrainAttr, PreservableColor)
dirt = (TerrainAttr "dirt", FgOnly $ Triple $ RGB 165 42 42)
dirt = (TerrainAttr "dirt", BgOnly $ Triple $ RGB 100 1 1)

grass :: (TerrainAttr, PreservableColor)
grass = (TerrainAttr "grass", FgOnly $ Triple $ RGB 0 32 0) -- dark green
grass = (TerrainAttr "grass", BgOnly $ Triple $ RGB 0 1 0) -- dark green

stone :: (TerrainAttr, PreservableColor)
stone = (TerrainAttr "stone", FgOnly $ Triple $ RGB 32 32 32)
stone = (TerrainAttr "stone", BgOnly $ Triple $ RGB 1 1 1)

ice :: (TerrainAttr, PreservableColor)
ice = (TerrainAttr "ice", BgOnly $ AnsiColor White)
Expand Down
6 changes: 3 additions & 3 deletions src/Swarm/Game/Terrain.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ getTerrainWord = T.toLower . T.pack . init . show
terrainMap :: Map TerrainType Display
terrainMap =
M.fromList
[ (StoneT, defaultTerrainDisplay '' (ATerrain "stone"))
, (DirtT, defaultTerrainDisplay '' (ATerrain "dirt"))
, (GrassT, defaultTerrainDisplay '' (ATerrain "grass"))
[ (StoneT, defaultTerrainDisplay ' ' (ATerrain "stone"))
, (DirtT, defaultTerrainDisplay ' ' (ATerrain "dirt"))
, (GrassT, defaultTerrainDisplay ' ' (ATerrain "grass"))
, (IceT, defaultTerrainDisplay ' ' (ATerrain "ice"))
, (BlankT, defaultTerrainDisplay ' ' ADefault)
]

0 comments on commit 9af3d35

Please sign in to comment.