Hi fellows,
I encountered a problem when I try to export my game to the web. Before I started adding javascript events and external js-files I was able to run the game in the browser right from the filesystem without the need of a webserver.
So I was able to pack the exported game into a click package and run the game as an offline webapp on ubuntu touch mobile os.
But since I included javascript the game only runs with a running webserver so the app doesn’t run locally on the phone anymore.
Is there any workaround so that I can run the webapp offline again and still use javascript?
Error message when run offline:
[code]code.js:13
Pixi.js 3.0.8 - ✰ WebGL ✰ http://www.pixijs.com/
bunny.png Failed to load resource: net::ERR_FILE_NOT_FOUND
code.js:11 Uncaught DOMException: Failed to execute ‘texImage2D’ on ‘WebGLRenderingContext’: The image element contains cross-origin data, and may not be loaded.
at i.updateTexture (file:///home/matthias/Gemeinsames/GemeinsameDateien/Entwicklung/gdevelop_projects/sakawochi/click/www/code.js:11:6391)
at i.renderBatch (file:///home/matthias/Gemeinsames/GemeinsameDateien/Entwicklung/gdevelop_projects/sakawochi/click/www/code.js:12:20171)
at i.flush (file:///home/matthias/Gemeinsames/GemeinsameDateien/Entwicklung/gdevelop_projects/sakawochi/click/www/code.js:12:19618)
at i.renderDisplayObject (file:///home/matthias/Gemeinsames/GemeinsameDateien/Entwicklung/gdevelop_projects/sakawochi/click/www/code.js:11:5437)
at i.render (file:///home/matthias/Gemeinsames/GemeinsameDateien/Entwicklung/gdevelop_projects/sakawochi/click/www/code.js:11:5219)
at gdjs.RuntimeScenePixiRenderer.render (file:///home/matthias/Gemeinsames/GemeinsameDateien/Entwicklung/gdevelop_projects/sakawochi/click/www/code.js:16:13588)
at gdjs.RuntimeScene.render (file:///home/matthias/Gemeinsames/GemeinsameDateien/Entwicklung/gdevelop_projects/sakawochi/click/www/code.js:2:10300)
at gdjs.RuntimeScene.renderAndStep (file:///home/matthias/Gemeinsames/GemeinsameDateien/Entwicklung/gdevelop_projects/sakawochi/click/www/code.js:2:10174)
at gdjs.SceneStack.step (file:///home/matthias/Gemeinsames/GemeinsameDateien/Entwicklung/gdevelop_projects/sakawochi/click/www/code.js:2:17908)
at file:///home/matthias/Gemeinsames/GemeinsameDateien/Entwicklung/gdevelop_projects/sakawochi/click/www/code.js:2:31627[/code]