bike

package
v0.0.0-...-4acb887 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRandomConnections

func AddRandomConnections(toAdd int, connections [][]int) [][]int

func ConnectGraph

func ConnectGraph(nodes []intgeom.Point) [][]int

func DayEnd

func DayEnd() (string, *oak.SceneResult)

func DayLoop

func DayLoop() bool

func DayStart

func DayStart(prev string, input interface{})

func MaxComponents

func MaxComponents(a, b intgeom.Point) intgeom.Point

func MinComponents

func MinComponents(a, b intgeom.Point) intgeom.Point

func NewWheelPair

func NewWheelPair() (Wheel, Wheel)

Types

type Addon

type Addon struct {
	*render.Sprite
}

type Bike

type Bike struct {
	*render.Sprite
	Frame
	Gears
	Pedals
	Handlebars
	Seat
	// contains filtered or unexported fields
}

func NewBike

func NewBike() *Bike

func (*Bike) Draw

func (b *Bike) Draw(buff draw.Image)

func (*Bike) DrawComponentTo

func (b *Bike) DrawComponentTo(c Component)

func (*Bike) DrawOffset

func (b *Bike) DrawOffset(buff draw.Image, xOff, yOff float64)

type Component

type Component interface {
	X() float64
	Y() float64
	// contains filtered or unexported methods
}

type Frame

type Frame struct {
	*render.Sprite
	// contains filtered or unexported fields
}

func NewFrame

func NewFrame() Frame

type Gears

type Gears struct {
	*render.Sprite
}

type Handlebars

type Handlebars struct {
	*render.Sprite
}

type Pedals

type Pedals struct {
	*render.Sprite
}

type Rim

type Rim struct {
	// contains filtered or unexported fields
}

func NewRim

func NewRim() Rim

type Seat

type Seat struct {
	*render.Sprite
}

type Tire

type Tire struct {
	// contains filtered or unexported fields
}

func NewTire

func NewTire() Tire

type Wheel

type Wheel struct {
	*render.Sprite
	Rim
	Tire
	// contains filtered or unexported fields
}

func NewWheel

func NewWheel() Wheel

func (Wheel) Radius

func (wh Wheel) Radius() float64

Jump to

Keyboard shortcuts

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