Documentation ¶
Index ¶
- Constants
- func LoadFontFace(path string, dpi, fontSize float64) (font.Face, error)
- func ReadUserInput() string
- type GameBox
- type GoodScreen
- func (s GoodScreen) Bounds() image.Rectangle
- func (s GoodScreen) DrawImage(image *ebiten.Image)
- func (s GoodScreen) DrawOutline(rect image.Rectangle, clr color.Color)
- func (s GoodScreen) Fill(clr color.Color)
- func (s GoodScreen) FillRect(rect image.Rectangle, clr color.Color)
- func (s GoodScreen) SubScreen(rect image.Rectangle) Screen
- type Screen
- type TextGridGame
- type TextOrientation
Constants ¶
View Source
const (
ZOOM_STEP = 2
)
Variables ¶
This section is empty.
Functions ¶
func ReadUserInput ¶
func ReadUserInput() string
Types ¶
type GoodScreen ¶
type GoodScreen struct {
// contains filtered or unexported fields
}
func FromScreen ¶
func FromScreen(img *ebiten.Image) GoodScreen
func (GoodScreen) Bounds ¶
func (s GoodScreen) Bounds() image.Rectangle
func (GoodScreen) DrawImage ¶
func (s GoodScreen) DrawImage(image *ebiten.Image)
func (GoodScreen) DrawOutline ¶
func (s GoodScreen) DrawOutline(rect image.Rectangle, clr color.Color)
func (GoodScreen) Fill ¶
func (s GoodScreen) Fill(clr color.Color)
type TextGridGame ¶
type TextGridGame struct { Size geom.Point2 FontFace font.Face FontSize int Text *iritext.TextGrid TextOrientation TextOrientation // contains filtered or unexported fields }
func NewTextGridGame ¶
func NewTextGridGame(width, height int, fontPath string, fontSize int, allowInput bool) TextGridGame
func (*TextGridGame) Draw ¶
func (g *TextGridGame) Draw(screen *ebiten.Image)
func (*TextGridGame) Layout ¶
func (g *TextGridGame) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)
func (*TextGridGame) Update ¶
func (g *TextGridGame) Update() error
type TextOrientation ¶
type TextOrientation uint8
const ( OriginTop TextOrientation = 0 OriginBottom TextOrientation = 1 RunFromOrigin TextOrientation = 0 StayAtOrigin TextOrientation = 2 )
Click to show internal directories.
Click to hide internal directories.