Noah Petherbridge
1a9706c09f
* Rework the Story Mode UI to display level thumbnails. * Responsive UI: defaults to wide screen mode and shows 3 levels horizontally but on narrow/mobile display, shows 2 levels per page in portrait. * Add "Tiny" screenshot size (224x126) to fit the Story Mode UI. * Make the pager buttons bigger and more touchable. * Maximize the game window on startup unless the -w option with a specific window resolution is provided.
34 lines
700 B
Go
34 lines
700 B
Go
//go:build js && wasm
|
|
// +build js,wasm
|
|
|
|
package sound
|
|
|
|
import (
|
|
"git.kirsle.net/go/audio"
|
|
"git.kirsle.net/go/audio/null"
|
|
)
|
|
|
|
// Globals for WASM sound engine.
|
|
var (
|
|
engine *null.Engine
|
|
)
|
|
|
|
func init() {
|
|
engine = null.New()
|
|
}
|
|
|
|
// LoadMusic loads filename from the MusicRoot into the global music cache.
|
|
// If the music is already loaded, does nothing.
|
|
func LoadMusic(filename string) audio.Playable {
|
|
return null.Playable{}
|
|
}
|
|
|
|
// LoadSound loads filename from the SoundRoot into the global SFX cache.
|
|
// If the sound is already loaded, does nothing.
|
|
func LoadSound(filename string) audio.Playable {
|
|
return null.Playable{}
|
|
}
|
|
|
|
// PlaySound plays the named sound.
|
|
func PlaySound(filename string) {}
|