ChoicescriptIDE / main

32 stars 6 forks source link

*sound doesn't work on web version #119

Open CareyJWilliams opened 3 years ago

CareyJWilliams commented 3 years ago

Embarrassingly, I think this has always been broken, or at least for a very long time. The short of it is that we pass the game files as a compiled object, so there's no need to load individual scene files.

This of course doesn't apply to media included within the game, which are still being referenced as "file://{projectPath}/resource" -- which doesn't exist on the web. We actually need to grab the media via Dropbox's API.

CareyJWilliams commented 2 years ago

User reported instance : https://forum.choiceofgames.com/t/need-help-with-simple-image-for-startup/112266/12?u=cjw

CareyJWilliams commented 2 years ago

Image support should be fixed by: https://github.com/ChoicescriptIDE/main/commit/2453b7b8c2f08a8ea7269e69f53d8d3d6803b7b3

Sound is much less commonly used and likely a little more tricky to fix.