cup

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 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