Skip to content

Commit

Permalink
Update HTML5 example
Browse files Browse the repository at this point in the history
  • Loading branch information
Insality committed Oct 20, 2023
1 parent 9132dc4 commit 85e6d41
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 32 deletions.
1 change: 1 addition & 0 deletions deployer_build_stats.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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: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-10-20T08:23:33Z,9132dc477b645d674ec21efbfcf85f48ef0ea8a6,0.11.718,2544,47,js-web,release,true,718
2 changes: 1 addition & 1 deletion docs/druid/archive/archive_files.json
Original file line number Diff line number Diff line change
@@ -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 modified docs/druid/archive/game.arcd0
Binary file not shown.
Binary file modified docs/druid/archive/game.arci0
Binary file not shown.
Binary file modified docs/druid/archive/game.dmanifest0
Binary file not shown.
9 changes: 5 additions & 4 deletions docs/druid/archive/game.projectc0
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[project]
title = druid
version = 0.11.694
version = 0.11.718
write_log = 0
compress_archive = 1
publisher = Insality
developer = Insality
commit_sha = d7dd4a86b81d73d345ad7e136de9c2c488bc4d8b
build_date = 2023-08-05T16:41:25Z
commit_sha = 9132dc477b645d674ec21efbfcf85f48ef0ea8a6
build_date = 2023-10-20T08:23:33Z
title_as_file_name = druid

[display]
Expand Down Expand Up @@ -102,6 +102,7 @@ max_count = 0
max_count = 64
max_particlefx_count = 64
max_particle_count = 1024
max_animation_count = 1024

[collection]
max_instances = 128
Expand All @@ -126,7 +127,7 @@ default_language = en
localizations = en

[android]
version_code = 694
version_code = 718
minimum_sdk_version = 19
target_sdk_version = 33
package = com.insality.druid
Expand Down
9 changes: 6 additions & 3 deletions docs/druid/dmloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ var EngineLoader = {
async function fetchWithProgress(path) {
const response = await fetch(path);
// 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);

let bytesLoaded = 0;
Expand Down Expand Up @@ -725,7 +728,7 @@ var Module = {
FS.syncfs(true, function(err) {
if (err) {
Module._syncTries += 1;
console.error("FS syncfs error: " + err);
console.warn("Unable to synchronize mounted file systems: " + err);
if (Module._syncMaxTries > Module._syncTries) {
Module.preSync(done);
} else {
Expand Down Expand Up @@ -847,7 +850,7 @@ var Module = {
Module._syncInProgress = false;

if (err) {
console.error("Module._startSyncFS error: " + err);
console.warn("Unable to synchronize mounted file systems: " + err);
Module._syncTries += 1;
}

Expand Down
Binary file modified docs/druid/druid.wasm
Binary file not shown.
48 changes: 26 additions & 22 deletions docs/druid/druid_asmjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/druid/druid_wasm.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion docs/druid/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<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 -->

<title>druid 0.11.694</title>
<title>druid 0.11.718</title>
<style type='text/css'>
/* Disable user selection to avoid strange bug in Chrome on Windows:
* Selecting a text outside the canvas, then clicking+draging would
Expand Down Expand Up @@ -165,6 +165,8 @@ <h1>Running from local file ⚠️</h1>
return scriptDirectory + path;
};



var is_iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
var buttonHeight = 0;
var prevInnerWidth = -1;
Expand Down

0 comments on commit 85e6d41

Please sign in to comment.