Page 1 of 1

OS X - Create App... Web

Posted: Tue May 28, 2019 7:22 pm
by J. Baker
This was tested using "Screen.sb".

If I Compile/Run, all is fine. If I export to Web, "Spider.png" fails to load. I have copied both the "Data" and "spiderbasic" (libraries) folder into the same folder (Desktop) as the html and js files that were created. What I do see is the blue background and black game screen, with debugger. I also tried using the full url link to the image but I just get the same result.

Any thoughts?

Re: OS X - Create App... Web

Posted: Tue May 28, 2019 9:18 pm
by Paul
SpiderBasic doesn't copy over your app resources so if you have graphics in a folder called "Data", you must copy that folder with its contents to the folder that is created when you use Compiler/Create App/Web

Also, so I don't have multiple copies of SpiderBasic's javascript files, I place a single copy of SpiderBasic/Libraries/javascript into a folder on my server called sbresources and then in the "Spider Basic Libraries Path" when creating app I put ../sbresources so my create for web screen would look like...
Image

Note: Be prepared for a little frustration due to SpiderBasic being more like a beta than a production release ;)