Move glyph definitions into a central type

This commit is contained in:
Marc Di Luzio 2020-07-19 11:46:37 +01:00
parent 0e731df1a3
commit a0b811a659
3 changed files with 34 additions and 7 deletions

View file

@ -9,16 +9,16 @@ type Tile byte
const (
// TileNone is a keyword for nothing
TileNone = Tile(0)
TileNone = Tile(GlyphNone)
// TileRock is solid rock ground
TileRock = Tile('-')
TileRock = Tile(GlyphRock)
// TileGravel is loose rocks
TileGravel = Tile(':')
TileGravel = Tile(GlyphGravel)
// TileSand is sand
TileSand = Tile('~')
TileSand = Tile(GlyphSand)
)
// Atlas represents a 2D world atlas of tiles and objects