resources

package
v0.0.0-...-7a8c1c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 InitFonts

func InitFonts()

func InitTiles

func InitTiles()

func LoadFont

func LoadFont(fontPath string) *opentype.Font

func MakeFontFace

func MakeFontFace(fnt *opentype.Font, size float64, dpi float64) font.Face

func MakeScreenFontFace

func MakeScreenFontFace(fnt *opentype.Font, size float64) font.Face

func RenderField

func RenderField(size image.Point, rect image.Rectangle,
	color common.ColorPair) *ebiten.Image

func RenderTile

func RenderTile(
	value int, sizePx image.Point, color common.ColorPair,
) *ebiten.Image

Types

type ConfigObj

type ConfigObj struct {
	Speed      int
	Padding    int
	HeaderRect image.Rectangle
	FieldRect  image.Rectangle
	BoardRect  image.Rectangle
	Tile       image.Point
	FieldSpace float64
	FieldSize  image.Point
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL