assets

package
v0.0.0-...-5834281 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageNone resource.ImageID = iota

	ImageUIButtonDisabled
	ImageUIButtonIdle
	ImageUIButtonHover
	ImageUIButtonPressed
	ImageUISelectButtonIdle
	ImageUISelectButtonHover
	ImageUISelectButtonPressed
	ImageUIPanelIdle

	ImageMenuBg

	ImageSystemMap
	ImageMapLocation
	ImageAlliedPlanet
	ImageHostilePlanet

	ImageBattleHUD
	ImageBattleBarHP
	ImageBattleBarEnergy
	ImageBattleBg

	ImageEnergyShield

	ImageProjectilePhotonCannon
	ImageProjectileIonCannon
	ImageProjectilePulseLaser
	ImageProjectileAssaultLaser
	ImageProjectileScatterGun
	ImageProjectileTrident
	ImageProjectileLance
	ImageProjectileMiniRocket
	ImageProjectileMissile
	ImageProjectileHomingMissile
	ImageProjectileTorpedo
	ImageProjectileFirestorm

	ImagePhotonCannonImpact
	ImageIonCannonImpact
	ImageAssaultLaserImpact
	ImageScatterGunImpact
	ImageTridentImpact
	ImageLanceImpact
	ImageMissileImpact

	ImageBigExplosion

	ImageVesselPlayer
	ImageVesselPlayerElite
	ImageVesselBetaSmall
	ImageVesselBetaBig
	ImageVesselGammaSmall
	ImageVesselGammaBig
	ImageVesselPirate
)
View Source
const (
	SoundGroupEffect uint = iota
	SoundGroupMusic
)
View Source
const (
	AudioNone resource.AudioID = iota

	AudioMusicGlobal
	AudioMusicCombat

	AudioIonCannon1
	AudioIonCannonImpact

	AudioScatterGun1

	AudioTrident1

	AudioPhotonCannon1
	AudioPhotonCannon2
	AudioPhotonCannon3

	AudioPulseLaser1
	AudioPulseLaser2
	AudioPulseLaser3

	AudioAssaultLaser1
	AudioAssaultLaser2

	AudioLance1

	AudioMissile1
	AudioMissile2
	AudioMissile3

	AudioExplosion1
	AudioExplosion2
	AudioExplosion3

	AudioBigExplosion1
	AudioBigExplosion2

	AudioShieldAbsorb
)

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)

func VolumeMultiplier

func VolumeMultiplier(level int) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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