cup

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cup

type Cup struct {
	pixelmunk.Object
	Direction float64
}

Cup represents the cup with which to catch the tennis balls

func NewCup

func NewCup(position vect.Vect, width, height vect.Float, color color.Color) (cup *Cup)

NewCup creates a new Cup

func (*Cup) Move

func (cup *Cup) Move()

Move moves the cup in the specified direction

func (*Cup) SetDirection

func (cup *Cup) SetDirection(direction float64)

SetDirection sets the direction in which the cup should move

Jump to

Keyboard shortcuts

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