started tile serializing

This commit is contained in:
2019-11-10 04:29:59 +03:00
parent f442dc6921
commit 3251d00dac
8 changed files with 155 additions and 51 deletions

View File

@ -10,7 +10,6 @@ type Tile struct {
Description string `json:"desc"`
BlocksPass bool `json:"blocksPass"`
BlocksSight bool `json:"blocksSight"`
Colordance bool `json:"colordance"`
Explored bool
MustDraw bool
Visible bool
@ -46,7 +45,7 @@ func NewWall() *Tile {
MustDraw: false,
Appearance: &Appearance{
Glyph: &PlainGlyphHolder{"#"},
ColorSet: &TileColorSet{
ColorSet: TileColorSet{
Fg: &PlainColorHolder{255, 130, 110, 150},
Bg: &PlainColorHolder{255, 172, 170, 173},
DarkFg: &PlainColorHolder{255, 20, 20, 68},
@ -66,7 +65,7 @@ func NewFloor() *Tile {
MustDraw: false,
Appearance: &Appearance{
Glyph: &PlainGlyphHolder{"."},
ColorSet: &TileColorSet{
ColorSet: TileColorSet{
Fg: &PlainColorHolder{255, 220, 220, 250},
Bg: &PlainColorHolder{255, 19, 19, 70},
DarkFg: &PlainColorHolder{255, 30, 20, 50},
@ -85,11 +84,10 @@ func NewWaterTile() *Tile {
BlocksSight: false,
Explored: false,
MustDraw: true, //fixme debug
Colordance: true,
Appearance: &Appearance{
Glyph: &PlainGlyphHolder{" "},
ColorSet: &TileColorSet{
ColorSet: TileColorSet{
Fg: &PlainColorHolder{255, 220, 220, 250},
Bg: &DanceColorHolder{
255,
@ -113,10 +111,9 @@ func NewDeepWaterTile() *Tile {
BlocksSight: false,
Explored: false,
MustDraw: true, //fixme debug
Colordance: true,
Appearance: &Appearance{
Glyph: &PlainGlyphHolder{" "},
ColorSet: &TileColorSet{
ColorSet: TileColorSet{
Fg: &PlainColorHolder{255, 220, 220, 250},
Bg: &DanceColorHolder{
255,