You've already forked FullScreenPokemon
mirror of
https://github.com/FullScreenShenanigans/FullScreenPokemon.git
synced 2026-04-28 12:58:40 -07:00
18b2b2d30c
* First round of converting: tests pass That's a good thing, right? * Finished recreating all creation methods * Removed requireEntrance from createMapsCreator * babyioc@0.7.2; tests for gameplay.startOptions * Bumped gamestartr version to 0.7.6 * Added src/index.ts * Converted sub-components to BabyIoC @components * Replaced "used by" doc comments with real ones * Revamped interface factory to have standalone export * Added maps tests from shenanigans-manager * Better documented initializaton options in README * Added Cycling.test.ts I'm on a plane, why not? * Replaced .bind when possible * Extra this. in InterfaceSettings constructor * Split general menu component into components per menu Added a whole bunch of tests for the Items and Pause menus. * Fixed lint issues * Removing annoying console.warn * Restored missing component files * shenanigans-manager@0.2.15 * Bumped shenanigans-manager to ^0.2.16 * Removed node=7 from .travis.yml
10 lines
304 B
TypeScript
10 lines
304 B
TypeScript
import { AudioPlayr } from "audioplayr";
|
|
|
|
import { FullScreenPokemon } from "../FullScreenPokemon";
|
|
|
|
export const createAudioPlayer = (fsp: FullScreenPokemon) =>
|
|
new AudioPlayr({
|
|
nameTransform: (name: string): string => `sounds/${name}.mp3`,
|
|
...fsp.settings.components.audio,
|
|
});
|