Documentation ¶
Index ¶
- Variables
- func InitColors()
- func InitFonts()
- func InitTiles()
- func LoadFont(fontPath string) *opentype.Font
- func MakeFontFace(fnt *opentype.Font, size float64, dpi float64) font.Face
- func MakeScreenFontFace(fnt *opentype.Font, size float64) font.Face
- func RenderField(size image.Point, rect image.Rectangle, color common.ColorPair) *ebiten.Image
- func RenderTile(value int, sizePx image.Point, color common.ColorPair) *ebiten.Image
- type ConfigObj
Constants ¶
This section is empty.
Variables ¶
View Source
var BoardColor ColorPair
View Source
var BoardStrColor ColorStrPair
View Source
var CeilFiveCharFF font.Face
View Source
var CeilFourCharFF font.Face
View Source
var CeilOneCharFF font.Face
View Source
var CeilThreeCharFF font.Face
View Source
var CeilTwoCharFF font.Face
View Source
var ColorMap map[int]ColorPair
View Source
var ColorStrMap map[int]ColorStrPair
View Source
var Config = ConfigObj{ Speed: 500, Padding: 20, HeaderRect: image.Rect(0, 0, 500, 90), FieldRect: image.Rect(0, 0, 500, 500), BoardRect: image.Rect(0, 0, 500, 590), Tile: image.Point{X: 100, Y: 100}, FieldSpace: 0.04, FieldSize: image.Point{X: 4, Y: 4}, }
View Source
var FieldColor ColorPair
View Source
var FieldStrColor ColorStrPair
View Source
var HeaderFF font.Face
View Source
var HeaderFontSize float64
View Source
var HumanAgentInstance = agent.NewHumanAgent(gameId)
View Source
var PoolAgentInstance = agent.NewPoolAgent(gameId)
View Source
var TextFF font.Face
View Source
var TextFontSize float64
View Source
var TileMap map[int]*ebiten.Image
View Source
var TitleFF font.Face
View Source
var TitleFontSize float64
Functions ¶
func InitColors ¶
func InitColors()
func RenderField ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.