SiliconGhetto Engine API
    Preparing search index...

    Function loadSound

    • Load a sound effect from a URL and register it with an ID.

      Parameters

      • id: string

        Unique string ID to reference this sound

      • url: string

        URL of the audio file to load

      Returns Promise<void>

      await sg.loadSound('jump', 'assets/jump.wav');