se

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseSE added in v0.0.3

func CloseSE() error

CloseSE closes all sound effects.

func LoadSE added in v0.0.3

func LoadSE() error

LoadSE loads all sound effects.

Types

type Player added in v0.0.3

type Player struct {
	// contains filtered or unexported fields
}

Player is a player to play a sound effect.

var (
	Jump *Player
	Drop *Player
)

sound effect

func GetAttackSe added in v0.0.5

func GetAttackSe(st SoundType) *Player

func (*Player) Close added in v0.0.3

func (p *Player) Close() error

Close closes the inner resources.

func (*Player) Play added in v0.0.3

func (p *Player) Play() error

Play plays a sound effect

type SoundType added in v0.0.5

type SoundType int

sound type

const (
	KuronaSe SoundType = iota
	KomaSe
	ShishimaruSe
)

Jump to

Keyboard shortcuts

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