mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Updated Working for Web (HTML5) (markdown)
@ -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!!!**
|
||||
|
||||
Reference in New Issue
Block a user