Documentation
¶
Index ¶
- type Drawable
- type Game
- func (g *Game) AddDrawable(d Drawable)
- func (g *Game) Destroy(d Drawable)
- func (g *Game) Draw()
- func (g *Game) DrawStr(x, y int, str string, style *tcell.Style)
- func (g *Game) FilterGameObjects(fn func(Drawable) bool) []Drawable
- func (g *Game) FindGameObject(fn func(Drawable) bool) Drawable
- func (g *Game) Update()
- type GameObject
- type Point
- type Ray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct { Repo string Screen tcell.Screen DefaultStyle tcell.Style Style tcell.Style MaxWidth int // contains filtered or unexported fields }
func (*Game) AddDrawable ¶
func (*Game) FilterGameObjects ¶
type GameObject ¶
type GameObject struct { X int Y int W int H int Sprite string Game *Game StyleOverride *tcell.Style }
func (*GameObject) Draw ¶
func (g *GameObject) Draw()
func (*GameObject) Point ¶
func (g *GameObject) Point() Point
func (*GameObject) Transform ¶
func (g *GameObject) Transform(x, y int)
func (*GameObject) Update ¶
func (g *GameObject) Update()
Click to show internal directories.
Click to hide internal directories.