{"id":15839369,"url":"https://github.com/phasereditor2d/phasereditor2d-scripts-audio","last_synced_at":"2025-08-12T14:32:55.040Z","repository":{"id":210339173,"uuid":"726326898","full_name":"PhaserEditor2D/phasereditor2d-scripts-audio","owner":"PhaserEditor2D","description":"Audio scripts for Phaser Editor 2D.","archived":false,"fork":false,"pushed_at":"2024-01-11T01:00:28.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-16T17:15:11.719Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PhaserEditor2D.png","metadata":{"files":{"readme":"README.MD","changelog":"CHANGELOG.MD","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-02T03:58:15.000Z","updated_at":"2023-12-14T13:11:14.000Z","dependencies_parsed_at":"2024-10-26T23:00:57.035Z","dependency_job_id":null,"html_url":"https://github.com/PhaserEditor2D/phasereditor2d-scripts-audio","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"d00fe1b0ce34722b7839b49462c9828e6909b2e9"},"previous_names":["phasereditor2d/phasereditor2d-scrips-audio","phasereditor2d/phasereditor2d-scripts-audio"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhaserEditor2D%2Fphasereditor2d-scripts-audio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhaserEditor2D%2Fphasereditor2d-scripts-audio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhaserEditor2D%2Fphasereditor2d-scripts-audio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhaserEditor2D%2Fphasereditor2d-scripts-audio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PhaserEditor2D","download_url":"https://codeload.github.com/PhaserEditor2D/phasereditor2d-scripts-audio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229691416,"owners_count":18108410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T16:04:16.219Z","updated_at":"2024-12-14T10:21:51.797Z","avatar_url":"https://github.com/PhaserEditor2D.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phaser Editor 2D Audio Scripts (library)\n\nThis project contains a few Phaser Editor 2D scripts for playing Phaser audios.\n\nThese script nodes are very basic and may fit on any Phaser Editor 2D project.\n\nThe scripts are coded in TypeScript with ES modules.\n\n## Installing (NPM)\n\nThis package depends on the following packages:\n\n- `@phasereditor2d/scripts-core`\n\nTo install this in your game you have to install dependencies too:\n\n```\nnpm install @phasereditor2d/scripts-core\nnpm install @phasereditor2d/scripts-audio\n```\n\nAlso, you should add this package to the `phasereditor2d.config.json` file in your project, in the `scripts` section:\n\n```json\n{\n    \"scripts\": [\n        \"@phasereditor2d/scripts-core\",\n        \"@phasereditor2d/scripts-audio\",\n    ]\n}\n```\n\n## Installing (vanilla JavaScript)\n\n* Get the files in the [browser](./browser/) folder and copy them into your JavaScript project. It includes Phaser Editor 2D files, JavaScript files, and TypeScript type definitions.\n* Add a `script` tag to the `index.html` file to load the `lib/phasereditor2d_scripts_core.js` file.\n\n## Summary\n\nThis library provides a couple of actions for playback audio files. As a reminder, an action is executed by an event script or another action.\n\nIt also contains user components for configuring the actions.\n\nThe actions:\n\n* **Play Audio Action** - Plays the given audio key.\n* **Stop Audio Action** - Stops the given audio key.\n* **Stop All Audios Action** - Stops all playing audios.\n* **Pause All Audios Action** - Pauses all playing audios.\n* **Resume All Audios Action** - Resumes all paused audios.\n\nThe user components:\n\n* **Audio Loop Config** - To configure the **loop** property in playing action scripts.\n* **Audio Volume Config** - To configure the **volume** property in playing action scripts.\n\n## Play Audio Action\n\n*Class: `PlayAudioActionScript`*\n\nThis action plays the audio you set in the **Audio Key** property. You can add the **Audio Loop Config** and **Audio Volume Config** components to this script for configuring the sound.\n\n## Stop Audio Action\n\n*Class: `StopAudioActionScript`*\n\nThis action stops the audio with the given **Audio Key**.\n\n## Stop All Audios Action\n\n*Class: `StopAllSoundsActionScript`*\n\nThis action stops all playing audios.\n\n## Pause All Audios Action\n\n*Class: `PauseAllSoundsActionScript`*\n\nThis action pauses all playing sounds.\n\n## Resume All Audios Action\n\n*Class: `ResumeAllSoundsActionScript`*\n\nThis action resumes all paused audios.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphasereditor2d%2Fphasereditor2d-scripts-audio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphasereditor2d%2Fphasereditor2d-scripts-audio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphasereditor2d%2Fphasereditor2d-scripts-audio/lists"}