Documentation
¶
Index ¶
- func RunGame(game Game, options GameOptions)
- type Game
- type GameOptions
- type Screen
- func (s *Screen) Fill(c rune)
- func (s *Screen) Get(x, y int) rune
- func (s *Screen) GetColor(x, y int) *color.Color
- func (s *Screen) GetData() [][]rune
- func (s *Screen) GetFPS() float64
- func (s *Screen) GetFrameDelta() string
- func (s *Screen) GetSize() Vec2di
- func (s *Screen) LineIsColored(y int, full bool) bool
- func (s *Screen) Print(x, y int, a ...any)
- func (s *Screen) Printf(x, y int, format string, a ...any)
- func (s *Screen) Set(x, y int, c rune)
- func (s *Screen) SetColor(x, y int, color color.Color)
- func (s *Screen) SetData(data [][]rune)
- func (s *Screen) SetLineColor(y int, color color.Color)
- type Text
- type TextAlignment
- type TextOptions
- type Vec2di
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunGame ¶
func RunGame(game Game, options GameOptions)
Types ¶
type GameOptions ¶
type Screen ¶
type Screen struct {
// contains filtered or unexported fields
}
func (*Screen) GetFrameDelta ¶
type Text ¶
type Text struct { Options TextOptions // contains filtered or unexported fields }
func (*Text) Align ¶
func (t *Text) Align(a TextAlignment)
type TextAlignment ¶
type TextAlignment uint8
const ( TextAlignment_Ignore TextAlignment = iota TextAlignment_Left TextAlignment_Right TextAlignment_Center )
type TextOptions ¶
type TextOptions struct { Spacing int Alignment TextAlignment }
Click to show internal directories.
Click to hide internal directories.