Documentation ¶
Index ¶
Constants ¶
View Source
const ( Title = "Timber Cutter" ScreenWidth = 640 ScreenHeight = 480 )
Variables ¶
View Source
var ( GreenColor = color.RGBA{ R: 0, G: 0xFF, B: 0, A: 0xFF, } RedColor = color.RGBA{ R: 0xFF, G: 0, B: 0, A: 0xFF, } )
View Source
var (
ErrTerminated = errors.New("terminated")
)
Functions ¶
This section is empty.
Types ¶
type GameState ¶
func NewGameState ¶
func NewGameState() *GameState
func (*GameState) UpdateTree ¶
func (g *GameState) UpdateTree()
type Position ¶
type Position int
func GenerateInitialTree ¶
func GenerateInitialTree() []Position
func GenerateSection ¶
Click to show internal directories.
Click to hide internal directories.