res

package
v0.0.0-...-cc63efc Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BigFontName = "x16y32pxGridGazer.ttf"
View Source
var DefFontName = "Mx437_IBM_VGA_9x16.ttf"
View Source
var EbiOS = ""
View Source
var Jukebox = &jukebox{}
View Source
var PlayingSounds []*SoundPlayer
View Source
var SmallFontName = "Mx437_IBM_EGA_8x8.ttf"
View Source
var SoundStreams = map[string]*vorbis.Stream{}
View Source
var Sounds = map[string]SoundEffect{}
View Source
var TileHalfHeight = 6.0
View Source
var TileHalfWidth = 6.0
View Source
var TileHeight = 13.0
View Source
var TileWidth = 13.0
View Source
var TileXStep = 4.5
View Source
var TileYStep = 9.0

Functions

func GetSoundStream

func GetSoundStream(name string) *vorbis.Stream

func LoadImage

func LoadImage(s string) *ebiten.Image

func LoadSpriteStack

func LoadSpriteStack(sprite string) ([]*ebiten.Image, error)

func UpdateSounds

func UpdateSounds()

Types

type Font

type Font struct {
	*sfnt.Font
	Size int
}
var BigFont Font
var DefFont Font
var SmallFont Font

type SoundEffect

type SoundEffect struct {
	// contains filtered or unexported fields
}

func (SoundEffect) Play

func (s SoundEffect) Play() *SoundPlayer

func (SoundEffect) PlayLooped

func (s SoundEffect) PlayLooped() *SoundPlayer

type SoundPlayer

type SoundPlayer struct {
	*audio.Player
	Looping bool
	Next    *SoundPlayer
}

func GetSound

func GetSound(name string) *SoundPlayer

func PlayLoopedSound

func PlayLoopedSound(name string) *SoundPlayer

func PlaySound

func PlaySound(name string) *SoundPlayer

Jump to

Keyboard shortcuts

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