Update HTML5 example

This commit is contained in:
Insality 2023-10-20 11:25:06 +03:00
parent 9132dc477b
commit 85e6d41f56
11 changed files with 43 additions and 32 deletions

View File

@ -16,3 +16,4 @@ date,sha,version,build_size,build_time,platform,mode,is_cache_using,commits_coun
2023-08-05T16:02:55Z,628723386eb3875f7190d079a2e7c510d044a311,0.11.692,2456,40,js-web,release,true,692 2023-08-05T16:02:55Z,628723386eb3875f7190d079a2e7c510d044a311,0.11.692,2456,40,js-web,release,true,692
2023-08-05T16:31:19Z,37fff52aa59feb20f761ef4d340d9f677743d54b,0.11.693,2456,43,js-web,release,true,693 2023-08-05T16:31:19Z,37fff52aa59feb20f761ef4d340d9f677743d54b,0.11.693,2456,43,js-web,release,true,693
2023-08-05T16:41:25Z,d7dd4a86b81d73d345ad7e136de9c2c488bc4d8b,0.11.694,2452,43,js-web,release,true,694 2023-08-05T16:41:25Z,d7dd4a86b81d73d345ad7e136de9c2c488bc4d8b,0.11.694,2452,43,js-web,release,true,694
2023-10-20T08:23:33Z,9132dc477b645d674ec21efbfcf85f48ef0ea8a6,0.11.718,2544,47,js-web,release,true,718

1 date sha version build_size build_time platform mode is_cache_using commits_count
16 2023-08-05T16:02:55Z 628723386eb3875f7190d079a2e7c510d044a311 0.11.692 2456 40 js-web release true 692
17 2023-08-05T16:31:19Z 37fff52aa59feb20f761ef4d340d9f677743d54b 0.11.693 2456 43 js-web release true 693
18 2023-08-05T16:41:25Z d7dd4a86b81d73d345ad7e136de9c2c488bc4d8b 0.11.694 2452 43 js-web release true 694
19 2023-10-20T08:23:33Z 9132dc477b645d674ec21efbfcf85f48ef0ea8a6 0.11.718 2544 47 js-web release true 718

View File

@ -1 +1 @@
{"content":[{"name":"game.projectc","size":4114,"pieces":[{"name":"game.projectc0","offset":0}]},{"name":"game.arci","size":23008,"pieces":[{"name":"game.arci0","offset":0}]},{"name":"game.arcd","size":607568,"pieces":[{"name":"game.arcd0","offset":0}]},{"name":"game.dmanifest","size":24253,"pieces":[{"name":"game.dmanifest0","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game.public.der0","offset":0}]}]} {"content":[{"name":"game.projectc","size":4141,"pieces":[{"name":"game.projectc0","offset":0}]},{"name":"game.arci","size":23248,"pieces":[{"name":"game.arci0","offset":0}]},{"name":"game.arcd","size":608384,"pieces":[{"name":"game.arcd0","offset":0}]},{"name":"game.dmanifest","size":26065,"pieces":[{"name":"game.dmanifest0","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game.public.der0","offset":0}]}]}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,12 +1,12 @@
[project] [project]
title = druid title = druid
version = 0.11.694 version = 0.11.718
write_log = 0 write_log = 0
compress_archive = 1 compress_archive = 1
publisher = Insality publisher = Insality
developer = Insality developer = Insality
commit_sha = d7dd4a86b81d73d345ad7e136de9c2c488bc4d8b commit_sha = 9132dc477b645d674ec21efbfcf85f48ef0ea8a6
build_date = 2023-08-05T16:41:25Z build_date = 2023-10-20T08:23:33Z
title_as_file_name = druid title_as_file_name = druid
[display] [display]
@ -102,6 +102,7 @@ max_count = 0
max_count = 64 max_count = 64
max_particlefx_count = 64 max_particlefx_count = 64
max_particle_count = 1024 max_particle_count = 1024
max_animation_count = 1024
[collection] [collection]
max_instances = 128 max_instances = 128
@ -126,7 +127,7 @@ default_language = en
localizations = en localizations = en
[android] [android]
version_code = 694 version_code = 718
minimum_sdk_version = 19 minimum_sdk_version = 19
target_sdk_version = 33 target_sdk_version = 33
package = com.insality.druid package = com.insality.druid

View File

@ -132,7 +132,10 @@ var EngineLoader = {
async function fetchWithProgress(path) { async function fetchWithProgress(path) {
const response = await fetch(path); const response = await fetch(path);
// May be incorrect if compressed // May be incorrect if compressed
const contentLength = response.headers.get("Content-Length"); var contentLength = response.headers.get("Content-Length");
if (!contentLength){
contentLength = EngineLoader.wasm_size;
}
const total = parseInt(contentLength, 10); const total = parseInt(contentLength, 10);
let bytesLoaded = 0; let bytesLoaded = 0;
@ -725,7 +728,7 @@ var Module = {
FS.syncfs(true, function(err) { FS.syncfs(true, function(err) {
if (err) { if (err) {
Module._syncTries += 1; Module._syncTries += 1;
console.error("FS syncfs error: " + err); console.warn("Unable to synchronize mounted file systems: " + err);
if (Module._syncMaxTries > Module._syncTries) { if (Module._syncMaxTries > Module._syncTries) {
Module.preSync(done); Module.preSync(done);
} else { } else {
@ -847,7 +850,7 @@ var Module = {
Module._syncInProgress = false; Module._syncInProgress = false;
if (err) { if (err) {
console.error("Module._startSyncFS error: " + err); console.warn("Unable to synchronize mounted file systems: " + err);
Module._syncTries += 1; Module._syncTries += 1;
} }

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<!-- The above 4 meta tags *must* come first in the head; any other head content must come *after* these tags --> <!-- The above 4 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>druid 0.11.694</title> <title>druid 0.11.718</title>
<style type='text/css'> <style type='text/css'>
/* Disable user selection to avoid strange bug in Chrome on Windows: /* Disable user selection to avoid strange bug in Chrome on Windows:
* Selecting a text outside the canvas, then clicking+draging would * Selecting a text outside the canvas, then clicking+draging would
@ -165,6 +165,8 @@
return scriptDirectory + path; return scriptDirectory + path;
}; };
var is_iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; var is_iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
var buttonHeight = 0; var buttonHeight = 0;
var prevInnerWidth = -1; var prevInnerWidth = -1;