assets

package
v0.0.0-...-96a477f Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SoundGroupEffect uint = iota
	SoundGroupMusic
)
View Source
const (
	AudioNone resource.AudioID = iota

	AudioFragImpact
	AudioMegaBombImpact

	AudioMusic1
	AudioMusic2
	AudioMusic3
	AudioMusicMenu
)
View Source
const (
	ImageNone resource.ImageID = iota

	ImageInterceptor1
	ImageInterceptor2

	ImageBoss1
	ImageBoss2

	ImageLaserProjectile1
	ImageLaserProjectile2
	ImageRearCannonProjectile
	ImageTwinCannonProjectile
	ImageTwinCannonSmallProjectile
	ImageSpinCannonProjectile
	ImagePhotonCannonProjectile
	ImageHomingMissile
	ImageMegaBomb
	ImageMine

	ImageLaserExplosion1
	ImageLaserExplosion2
	ImageRearCannonExplosion
	ImageTwinCannonExplosion
	ImageTwinCannonSmallExplosion
	ImageSpinCannonExplosion
	ImageSpinCannonSpawn
	ImagePhotonCannonExplosion
	ImageMissileExplosion
	ImageMissileSpawn
	ImageExplosionSmoke
	ImageFireExplosion
	ImageMegaBombImpact
	ImageTrailEffect
	ImageMineSpawn

	ImageDashEffect

	ImageTileset1

	ImageBattleOverlay
	ImageTargetPointer
	ImageBattleBarHP
	ImageBattleBarEnergy

	ImageMenuBg

	ImageUIButtonDisabled
	ImageUIButtonIdle
	ImageUIButtonHover
	ImageUIButtonPressed
	ImageUISelectButtonIdle
	ImageUISelectButtonHover
	ImageUISelectButtonPressed
	ImageUIPanelIdle
)
View Source
const (
	RawNone resource.RawID = iota

	RawTiles1
)
View Source
const (
	ShaderNone resource.ShaderID = iota

	ShaderCRT
)

Variables

View Source
var (
	BitmapFont1 = bitmapfont.Face
	BitmapFont2 = scaleFont(BitmapFont1, 2)
	BitmapFont3 = scaleFont(BitmapFont1, 3)
)

Functions

func MakeOpenAssetFunc

func MakeOpenAssetFunc(ctx *ge.Context) func(path string) io.ReadCloser

func NumSamples

func NumSamples(a resource.AudioID) int

func RegisterResources

func RegisterResources(ctx *ge.Context, config Config)

func VolumeMultiplier

func VolumeMultiplier(level int) float64

Types

type Config

type Config struct {
	PlayerListener func(e xm.StreamEvent)
}

Directories

Path Synopsis
_data

Jump to

Keyboard shortcuts

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