asset

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ImgTitle1 = LoadImage("image/title1.png")
	ImgTitle2 = LoadImage("image/title2.png")
	ImgTitle3 = LoadImage("image/title3.png")

	ImgBat        = LoadImage("image/bat.png")
	ImgBatBroken1 = LoadImage("image/bat_broken1.png")
	ImgBatBroken2 = LoadImage("image/bat_broken2.png")

	ImgSnowflake = LoadImage("image/snowflake.png")
)
View Source
var (
	SoundBatHit1 *audio.Player
	SoundBatHit2 *audio.Player
	SoundBatHit3 *audio.Player
	SoundBatHit4 *audio.Player

	SoundCreepDie *audio.Player

	SoundTitleMusic *audio.Player
	SoundLevelMusic *audio.Player
)
View Source
var ImgBlackSquare = ebiten.NewImage(8, 8)
View Source
var ImgWhiteSquare = ebiten.NewImage(8, 8)

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