Documentation ¶
Index ¶
- Constants
- type Game
- func (g *Game) CalcualtePaths(golfBall *ball.Ball, currentSector *sectors.Sector) (paths []*ballPath, collisionImpossible, waitingForHit bool)
- func (g *Game) DrawCurrentPath(dt float64) (finishedDrawing bool)
- func (g *Game) DrawTransitions()
- func (g *Game) GetInput(dt float64)
- func (g *Game) Run()
- func (g *Game) UpdateScreen()
Constants ¶
View Source
const ( DEBUG_SCALE = 0.7 TIME_SCALE = 15.0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
func (*Game) CalcualtePaths ¶
func (g *Game) CalcualtePaths(golfBall *ball.Ball, currentSector *sectors.Sector) (paths []*ballPath, collisionImpossible, waitingForHit bool)
TODO: Move to physics
func (*Game) DrawCurrentPath ¶
func (*Game) DrawTransitions ¶
func (g *Game) DrawTransitions()
TODO: Draw transition from current to next sector
func (*Game) UpdateScreen ¶
func (g *Game) UpdateScreen()
Click to show internal directories.
Click to hide internal directories.