game

package
v0.0.0-...-cc30c68 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2018 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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 NewGame

func NewGame(win *pixelgl.Window) *Game

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 (g *Game) DrawCurrentPath(dt float64) (finishedDrawing bool)

func (*Game) DrawTransitions

func (g *Game) DrawTransitions()

TODO: Draw transition from current to next sector

func (*Game) GetInput

func (g *Game) GetInput(dt float64)

func (*Game) Run

func (g *Game) Run()

func (*Game) UpdateScreen

func (g *Game) UpdateScreen()

Jump to

Keyboard shortcuts

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