camera

package
v0.0.0-...-67688cb Latest Latest
Warning

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

Go to latest
Published: Dec 1, 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 Camera

type Camera struct {
	*ebicam.Camera
	// contains filtered or unexported fields
}

func NewCamera

func NewCamera(w, h int) *Camera

func (*Camera) Shake

func (cam *Camera) Shake(shaker *Shaker)

func (*Camera) Update

func (cam *Camera) Update()

type Shaker

type Shaker struct {
	Ease *gween.Tween
	Done bool
	// contains filtered or unexported fields
}

func NewShaker

func NewShaker(maxMagnitude, maxTime float32, period float64) *Shaker

Jump to

Keyboard shortcuts

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