ball

package
v0.0.0-...-01f2ea1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ball

type Ball struct {
	X         int
	Y         int
	XVelocity int
	YVelocity int
	// contains filtered or unexported fields
}

func NewBall

func NewBall(renderer *sdl.Renderer) (*Ball, error)

func (*Ball) Center

func (ball *Ball) Center()

func (*Ball) Draw

func (ball *Ball) Draw() error

func (*Ball) DrawArrow

func (ball *Ball) DrawArrow() error

func (*Ball) RandomizeVelocity

func (ball *Ball) RandomizeVelocity() error

Jump to

Keyboard shortcuts

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