Documentation ¶
Index ¶
- type Type
- func (t *Type) DrawControlsText(win *pixelgl.Window)
- func (t *Type) DrawGameOverText(win *pixelgl.Window, gameCFG *game.Config, name string, highScore bool)
- func (t *Type) DrawScoreText(win *pixelgl.Window, score int)
- func (t *Type) DrawScoresListText(win *pixelgl.Window, gameCFG *game.Config, scoresTable *scores.Type)
- func (t *Type) DrawStartGameText(win *pixelgl.Window)
- func (t *Type) DrawTitleText(win *pixelgl.Window)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
Type holds the various text object for the game
func NewGameText ¶
NewGameText generates a new game text structure used to control all text display for the game
func (*Type) DrawControlsText ¶
DrawControlsText draws the controls text on the provided window
func (*Type) DrawGameOverText ¶
func (t *Type) DrawGameOverText(win *pixelgl.Window, gameCFG *game.Config, name string, highScore bool)
DrawGameOverText draws the game over text on the provided window
func (*Type) DrawScoreText ¶
DrawScoreText draws the score text on the provided window
func (*Type) DrawScoresListText ¶
func (t *Type) DrawScoresListText(win *pixelgl.Window, gameCFG *game.Config, scoresTable *scores.Type)
DrawScoresListText draws the scores list on the provided window
func (*Type) DrawStartGameText ¶
DrawStartGameText draws the start game text on the provided window
func (*Type) DrawTitleText ¶
DrawTitleText draws the title text on the window provided
Click to show internal directories.
Click to hide internal directories.