Move glyph definitions into a central type
This commit is contained in:
parent
0e731df1a3
commit
a0b811a659
3 changed files with 34 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue