asset

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ImgBlank       = ebiten.NewImage(1, 1)
	ImgWhiteSquare = ebiten.NewImage(64, 64)
	ImgBlackSquare = ebiten.NewImage(64, 64)
	ImgHelp        = LoadImage("image/help.png")
	ImgPower       = LoadImage("image/power.png")
)
View Source
var (
	SoundMusic1 *audio.Player
	SoundMusic2 *audio.Player
	SoundMusic3 *audio.Player

	SoundSelect   *audio.Player
	SoundBulldoze *audio.Player

	SoundPop1 *audio.Player
	SoundPop2 *audio.Player
	SoundPop3 *audio.Player
	SoundPop4 *audio.Player
	SoundPop5 *audio.Player

	SoundExplosion1 *audio.Player
	SoundExplosion2 *audio.Player
)

Functions

func LoadBytes

func LoadBytes(p string) []byte

func LoadImage

func LoadImage(p string) *ebiten.Image

func LoadOGG

func LoadOGG(context *audio.Context, p string, loop bool) *audio.Player

func LoadSounds

func LoadSounds(ctx *audio.Context)

func LoadWAV

func LoadWAV(context *audio.Context, p string) *audio.Player

Types

This section is empty.

Jump to

Keyboard shortcuts

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