mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
Update example app
This commit is contained in:
parent
1ae77e727f
commit
d2e4362f48
@ -1 +1 @@
|
|||||||
{"content":[{"name":"game.projectc","size":3432,"pieces":[{"name":"game.projectc0","offset":0}]},{"name":"game.arci","size":11568,"pieces":[{"name":"game.arci0","offset":0}]},{"name":"game.arcd","size":388522,"pieces":[{"name":"game.arcd0","offset":0}]},{"name":"game.dmanifest","size":25565,"pieces":[{"name":"game.dmanifest0","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game.public.der0","offset":0}]}]}
|
{"content":[{"name":"game.projectc","size":3748,"pieces":[{"name":"game.projectc0","offset":0}]},{"name":"game.arci","size":13488,"pieces":[{"name":"game.arci0","offset":0}]},{"name":"game.arcd","size":948341,"pieces":[{"name":"game.arcd0","offset":0}]},{"name":"game.dmanifest","size":13875,"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.
@ -1,12 +1,12 @@
|
|||||||
[project]
|
[project]
|
||||||
title = druid
|
title = druid
|
||||||
version = 0.6.466
|
version = 0.7.499
|
||||||
write_log = 0
|
write_log = 0
|
||||||
compress_archive = 1
|
compress_archive = 1
|
||||||
publisher = Insality
|
publisher = Insality
|
||||||
developer = Insality
|
developer = Insality
|
||||||
commit_sha = ffa3bafa002c561f6f4a31e8bbca228c3606b1cc
|
commit_sha = 1ae77e727fd29b01a514e73820b3e02213aeb7db
|
||||||
build_time = 2021-05-30T08:51:36Z
|
build_time = 2021-10-23T14:38:03Z
|
||||||
|
|
||||||
[display]
|
[display]
|
||||||
width = 600
|
width = 600
|
||||||
@ -35,7 +35,7 @@ world_count = 4
|
|||||||
gravity_x = 0
|
gravity_x = 0
|
||||||
gravity_z = 0
|
gravity_z = 0
|
||||||
scale = 1
|
scale = 1
|
||||||
allow_dynamic_transforms = 0
|
allow_dynamic_transforms = 1
|
||||||
debug_scale = 30
|
debug_scale = 30
|
||||||
max_collisions = 64
|
max_collisions = 64
|
||||||
max_contacts = 128
|
max_contacts = 128
|
||||||
@ -121,9 +121,9 @@ default_language = en
|
|||||||
localizations = en
|
localizations = en
|
||||||
|
|
||||||
[android]
|
[android]
|
||||||
version_code = 466
|
version_code = 499
|
||||||
minimum_sdk_version = 16
|
minimum_sdk_version = 16
|
||||||
target_sdk_version = 29
|
target_sdk_version = 30
|
||||||
package = com.insality.druid
|
package = com.insality.druid
|
||||||
manifest = /builtins/manifests/android/AndroidManifest.xml
|
manifest = /builtins/manifests/android/AndroidManifest.xml
|
||||||
iap_provider = GooglePlay
|
iap_provider = GooglePlay
|
||||||
@ -149,6 +149,7 @@ cssfile = /builtins/manifests/web/light_theme.css
|
|||||||
archive_location_prefix = archive
|
archive_location_prefix = archive
|
||||||
show_fullscreen_button = 0
|
show_fullscreen_button = 0
|
||||||
show_made_with_defold = 0
|
show_made_with_defold = 0
|
||||||
|
show_console_banner = 1
|
||||||
scale_mode = fit
|
scale_mode = fit
|
||||||
engine_arguments = --verify-graphics-calls=false
|
engine_arguments = --verify-graphics-calls=false
|
||||||
splash_image = /media/druid_logo.png
|
splash_image = /media/druid_logo.png
|
||||||
@ -191,6 +192,17 @@ run_while_iconified = 0
|
|||||||
|
|
||||||
[druid]
|
[druid]
|
||||||
no_auto_input = 0
|
no_auto_input = 0
|
||||||
|
stencil_check = 0
|
||||||
|
input_text = text
|
||||||
|
input_touch = touch
|
||||||
|
input_marked_text = marked_text
|
||||||
|
input_key_esc = key_esc
|
||||||
|
input_key_back = key_back
|
||||||
|
input_key_enter = key_enter
|
||||||
|
input_key_backspace = key_backspace
|
||||||
|
input_multitouch = multitouch
|
||||||
|
input_scroll_up = scroll_up
|
||||||
|
input_scroll_down = scroll_down
|
||||||
|
|
||||||
[native_extension]
|
[native_extension]
|
||||||
app_manifest = /example/game.appmanifest
|
app_manifest = /example/game.appmanifest
|
||||||
|
Binary file not shown.
@ -30,7 +30,7 @@ var FileLoader = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
currentAttempt = currentAttempt + 1;
|
currentAttempt = currentAttempt + 1;
|
||||||
setTimeout(obj.send, FileLoader.options.retryInterval);
|
setTimeout(obj.send.bind(obj), FileLoader.options.retryInterval);
|
||||||
};
|
};
|
||||||
xhr.onload = function(e) {
|
xhr.onload = function(e) {
|
||||||
if (onload) onload(xhr, e);
|
if (onload) onload(xhr, e);
|
||||||
|
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
@ -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.6.466</title>
|
<title>druid 0.7.499</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
|
||||||
@ -160,7 +160,8 @@
|
|||||||
|
|
||||||
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;
|
||||||
// Resize on init, screen resize and orientation change
|
var prevInnerWidth = -1;
|
||||||
|
var prevInnerHeight = -1;
|
||||||
function resize_game_canvas() {
|
function resize_game_canvas() {
|
||||||
// Hack for iOS when exit from Fullscreen mode
|
// Hack for iOS when exit from Fullscreen mode
|
||||||
if (is_iOS) {
|
if (is_iOS) {
|
||||||
@ -171,6 +172,12 @@
|
|||||||
var game_canvas = document.getElementById('canvas');
|
var game_canvas = document.getElementById('canvas');
|
||||||
var innerWidth = window.innerWidth;
|
var innerWidth = window.innerWidth;
|
||||||
var innerHeight = window.innerHeight - buttonHeight;
|
var innerHeight = window.innerHeight - buttonHeight;
|
||||||
|
if (prevInnerWidth == innerWidth && prevInnerHeight == innerHeight)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
prevInnerWidth = innerWidth;
|
||||||
|
prevInnerHeight = innerHeight;
|
||||||
var width = 600;
|
var width = 600;
|
||||||
var height = 900;
|
var height = 900;
|
||||||
var targetRatio = width / height;
|
var targetRatio = width / height;
|
||||||
@ -201,6 +208,7 @@
|
|||||||
resize_game_canvas();
|
resize_game_canvas();
|
||||||
window.addEventListener('resize', resize_game_canvas, false);
|
window.addEventListener('resize', resize_game_canvas, false);
|
||||||
window.addEventListener('orientationchange', resize_game_canvas, false);
|
window.addEventListener('orientationchange', resize_game_canvas, false);
|
||||||
|
window.addEventListener('focus', resize_game_canvas, false);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script id='engine-start' type='text/javascript'>
|
<script id='engine-start' type='text/javascript'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user