asset

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SoundHitP1 = LoadWAV(audioContext, "sound/hit.wav")
	SoundHitP2 = LoadWAV(audioContext, "sound/hit.wav")
	SoundMusic = LoadOGG(audioContext, "sound/an_individual_who_fights_on_roads.ogg", true)
)
View Source
var FS embed.FS
View Source
var ImgPlayer = LoadImage("image/player.png")

Functions

func FrameAt

func FrameAt(img *ebiten.Image, x int, y int) *ebiten.Image

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 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