From bbcb0c472a796dcf56ff4078850ae17cb309059f Mon Sep 17 00:00:00 2001 From: Pere001 <68083904+Pere001@users.noreply.github.com> Date: Fri, 18 Nov 2022 13:19:47 +0100 Subject: [PATCH] Updated Working for Web (HTML5) (markdown) --- Working-for-Web-(HTML5).md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Working-for-Web-(HTML5).md b/Working-for-Web-(HTML5).md index f478713..2f9ec69 100644 --- a/Working-for-Web-(HTML5).md +++ b/Working-for-Web-(HTML5).md @@ -297,8 +297,12 @@ Q: Mouse Input not being detected? A: Be sure that the Input Detection is in front of the Frame Draw. For some reason input isn't detected after the frame has been drawn. -Q: Failing to load resource files? +Q: Failing to load resource files? (``WARNING: FILEIO: [...] Failed to open file``) A: Make sure that you refer to the resource directory in the same way in the code and in the ``--preload-file`` compiler argument. If you passed an absolute path to the compiler (e.g. ``C:\my_game\resources``) you'll have to use absolute paths in the code (e.g. ``"C:/my_game/resources/player.png"``), and if you passed a relative path to the compiler (e.g. ``..\resources``) you'll have to use relative paths in the code (e.g. ``"resources/player.png"``). +Q: Failing to play sounds? (``Uncaught ReferenceError: ccall is not defined at device.scriptNode.onaudioprocess``) + +A: Add this argument in the compiler line ``-s EXPORTED_RUNTIME_METHODS=ccall``. + **Please, feel free to add here your FAQ/Issues to help others!!!**