Documentation ¶
Index ¶
- type AudioID
- type Context
- type ImageID
- type Loader
- func (l *Loader) LoadAllAudio(resources map[AudioID]string, progress *float64)
- func (l *Loader) LoadAllImages(resources map[ImageID]string, progress *float64)
- func (l *Loader) LoadAudio(id AudioID, path string) *audio.Player
- func (l *Loader) LoadImage(id ImageID, path string) *ebiten.Image
- func (l *Loader) LoadOGG(id AudioID, path string) *audio.Player
- func (l *Loader) LoadWAV(id AudioID, path string) *audio.Player
- type Once
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Loader *Loader FullScreen bool WindowTitle string WindowWidth float64 WindowHeight float64 ScreenWidth float64 ScreenHeight float64 }
func NewContext ¶
func NewContext() *Context
type Loader ¶
type Loader struct { Audio map[AudioID]*audio.Player Image map[ImageID]*ebiten.Image OpenAsset func(string) io.ReadCloser // contains filtered or unexported fields }
func (*Loader) LoadAllAudio ¶
func (*Loader) LoadAllImages ¶
TODO: make a single function for images and audios
Click to show internal directories.
Click to hide internal directories.