obstacle

package
v0.0.0-...-b36fbdc Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Obstacle

type Obstacle struct {
	X        int
	Y        int
	Diameter int

	OnObstacleReset func(obs Obstacle)
	// contains filtered or unexported fields
}

func NewObstacle

func NewObstacle(game *game.Game, onObstacleReset func(obs Obstacle)) *Obstacle

func (*Obstacle) Draw

func (o *Obstacle) Draw(ctx js.Value)

func (*Obstacle) Reset

func (o *Obstacle) Reset()

func (*Obstacle) Update

func (o *Obstacle) Update(mouseX int, mouseY int, mpf float64)

Jump to

Keyboard shortcuts

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