car

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Car

type Car struct {
	Obstacles *[]*obstacle.Obstacle
	// contains filtered or unexported fields
}

func NewCar

func NewCar(x int, y int, game *game.Game, obstacles *[]*obstacle.Obstacle) *Car

func (*Car) Draw

func (c *Car) Draw(ctx js.Value)

func (*Car) IsOutsideCanvas

func (c *Car) IsOutsideCanvas() bool

func (*Car) IsTouchingMouse

func (c *Car) IsTouchingMouse(mouseX, mouseY int) bool

func (*Car) IsTouchingObstacle

func (c *Car) IsTouchingObstacle() bool

func (*Car) Update

func (c *Car) 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