animation handling, screens, vp changes
This commit is contained in:
@ -60,8 +60,21 @@ type TileColorSet struct {
|
||||
DarkBg ColorHolder
|
||||
}
|
||||
|
||||
|
||||
type GlyphHolder interface {
|
||||
GetGlyph() string
|
||||
}
|
||||
|
||||
type PlainGlyphHolder struct {
|
||||
Glyph string
|
||||
}
|
||||
|
||||
func (pch *PlainGlyphHolder) GetGlyph() string {
|
||||
return pch.Glyph
|
||||
}
|
||||
|
||||
type Appearance struct {
|
||||
Char string `json:"char"`
|
||||
Glyph GlyphHolder `json:"char"`
|
||||
ColorSet *TileColorSet `json:"colorSet"`
|
||||
}
|
||||
|
||||
@ -80,7 +93,7 @@ func FillColorRing(colorValue uint8, minGlow, maxGlow, step int) *cdeque {
|
||||
color = crng.Range(1, step) + color
|
||||
}
|
||||
color = crng.Range(0, step+minGlow)
|
||||
q = append(q, uint8(color))
|
||||
q = append(q, colorValue)
|
||||
//for uint8(color) < uint8(colorValue) {
|
||||
// q = append(q, uint8(color))
|
||||
// color = crng.Range(1, step+minGlow)
|
||||
|
Reference in New Issue
Block a user