animation handling, screens, vp changes

This commit is contained in:
2019-11-01 17:51:55 +03:00
parent c6c6b6254d
commit 1ac6ae4665
16 changed files with 297 additions and 110 deletions

View File

@ -17,7 +17,7 @@ type Tile struct {
}
func (t *Tile) GetChar() string {
return t.Char
return t.Glyph.GetGlyph()
}
func (t *Tile) GetRawColor() uint32 {
@ -45,7 +45,7 @@ func NewWall() *Tile {
Explored: false,
MustDraw: false,
Appearance: &Appearance{
Char: "#",
Glyph: &PlainGlyphHolder{"#"},
ColorSet: &TileColorSet{
Fg: &PlainColorHolder{255, 130, 110, 150},
Bg: &PlainColorHolder{255, 172, 170, 173},
@ -65,7 +65,7 @@ func NewFloor() *Tile {
Explored: false,
MustDraw: false,
Appearance: &Appearance{
Char: ".",
Glyph: &PlainGlyphHolder{"."},
ColorSet: &TileColorSet{
Fg: &PlainColorHolder{255, 220, 220, 250},
Bg: &PlainColorHolder{255, 19, 19, 70},
@ -88,14 +88,14 @@ func NewWaterTile() *Tile {
Colordance: true,
Appearance: &Appearance{
Char: " ",
Glyph: &PlainGlyphHolder{" "},
ColorSet: &TileColorSet{
Fg: &PlainColorHolder{255, 220, 220, 250},
Bg: &DanceColorHolder{
255,
SingleColorRing(19),
FillColorRing(19, 0, 15, 2),
FillColorRing(70, 120, 220, 12),
FillColorRing(127, 120, 176, 12),
},
DarkFg: &PlainColorHolder{255, 30, 20, 50},
DarkBg: &PlainColorHolder{255, 7, 7, 30},
@ -115,7 +115,7 @@ func NewDeepWaterTile() *Tile {
MustDraw: true, //fixme debug
Colordance: true,
Appearance: &Appearance{
Char: " ",
Glyph: &PlainGlyphHolder{" "},
ColorSet: &TileColorSet{
Fg: &PlainColorHolder{255, 220, 220, 250},
Bg: &DanceColorHolder{