gametext

package
v0.0.0-...-3fd9c7e Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func NewGameText(win *pixelgl.Window, gameCFG game.Config) Type

NewGameText generates a new game text structure used to control all text display for the game

func (*Type) DrawControlsText

func (t *Type) DrawControlsText(win *pixelgl.Window)

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

func (t *Type) DrawScoreText(win *pixelgl.Window, score int)

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

func (t *Type) DrawStartGameText(win *pixelgl.Window)

DrawStartGameText draws the start game text on the provided window

func (*Type) DrawTitleText

func (t *Type) DrawTitleText(win *pixelgl.Window)

DrawTitleText draws the title text on the window provided

Jump to

Keyboard shortcuts

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