david-pfx / PuzzleScriptNext

A direct successor to PuzzleScript, building on the work of PuzzleScript Plus, Pattern:Script and others.
http://www.puzzlescriptnext.polyomino.com
MIT License
15 stars 6 forks source link

Music - 3 ideas #27

Open david-pfx opened 8 months ago

david-pfx commented 8 months ago

Figure out how and just do it!

david-pfx commented 2 weeks ago

3 suggestions. https://discord.com/channels/473538592896188446/603626559189942294/1287153583644475563

  1. Draknek: I embed with some javascript code that loads the game from the gist, and adds some hooks to detect when the game is started and play an audio file https://alan.draknek.org/games/puzzlescript/js/puzzlescript-embed.js
PuzzleScript.embed(document.getElementById("game"), "cc7e22ec296042a4e4baeecf34e2a36e", {
    engine: "scripts_play_compiled.js",
    controls: document.getElementById("controls"),
    aspectRatio: 0.75,
    maxHeight: 480,
    music: "Slime Stretch tiny mix.ogg",
});
  1. Joseph Mansfield: the Conveyor Con-fusion way is to add

  2. Joseph Mansfield: there is a fork that supports it https://github.com/competor/PuzzleScript-MML Not sure if it's merged into any of the other bigger forks