I decided to try one of my apps in HTML 5, and hit a couple of problems. My testing was done in Chrome...
1. Export as HTML, 2D only
2. Get error...
unrecognised instruction at 103 in main.agc. This was the command
SetGlobal3DDepth(), so I commented it out.
3. Export again, reload the game (using CTRL-F5 to reload everything). Same error message.
4. Add an extra blank line of code to move the supposed error to line 104 (commented out line, in orange):
5. Same error, on the same line 103
6. Export to HTML as 3D to try and work out what is going on. Get the following error on loading...
Quote: "Uncaught abort(41) at Error at jsStackTrace (http://devink.co.uk/games/circles/AGKPlayer.js:1:26777) at stackTrace (http://devink.co.uk/games/circles/AGKPlayer.js:1:26960) at abort (http://devink.co.uk/games/circles/AGKPlayer.js:3:10635) at Array.DWb (http://devink.co.uk/games/circles/AGKPlayer.asm.js:16:18524) at RSb (http://devink.co.uk/games/circles/AGKPlayer.asm.js:13:822959) at Object.KTb [as ___cxa_is_pointer_type] (http://devink.co.uk/games/circles/AGKPlayer.asm.js:16:1494) at ___cxa_find_matching_catch (http://devink.co.uk/games/circles/AGKPlayer.js:1:205028) at ___cxa_find_matching_catch_2 (http://devink.co.uk/games/circles/AGKPlayer.js:1:252631) at gEb (http://devink.co.uk/games/circles/AGKPlayer.asm.js:13:447530) at fEb (http://devink.co.uk/games/circles/AGKPlayer.asm.js:13:445679) If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information."
7. Changed the folder name so that local browser disassociated the files with previous loads. Now, I get an error at line 165 (unrecognised instruction), another blank line:
This program works in Windows and Android.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt