Skip to content

Commit 3a082b4

Browse files
Site changes
1 parent d84e825 commit 3a082b4

439 files changed

Lines changed: 62 additions & 58 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"content":[{"name":"game.projectc","size":4776,"pieces":[{"name":"game0.projectc","offset":0}]},{"name":"game.arci","size":3168,"pieces":[{"name":"game0.arci","offset":0}]},{"name":"game.arcd","size":1448400,"pieces":[{"name":"game0.arcd","offset":0}]},{"name":"game.dmanifest","size":3303,"pieces":[{"name":"game0.dmanifest","offset":0}]}],"total_size":1459647}
1+
{"content":[{"name":"game.projectc","size":4777,"pieces":[{"name":"game0.projectc","offset":0}]},{"name":"game.arci","size":3168,"pieces":[{"name":"game0.arci","offset":0}]},{"name":"game.arcd","size":1448400,"pieces":[{"name":"game0.arcd","offset":0}]},{"name":"game.dmanifest","size":3303,"pieces":[{"name":"game0.dmanifest","offset":0}]}],"total_size":1459648}
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/animation/3d_animations/archive/game0.projectc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ wasm_streaming = 0
195195
show_fullscreen_button = 1
196196
show_made_with_defold = 1
197197
show_console_banner = 1
198-
scale_mode = stretch
198+
scale_mode = no_scale
199199
transparent_graphics_context = 0
200200

201201
[particle_fx]

examples/animation/3d_animations/dmloader.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,15 @@ var CUSTOM_PARAMETERS = {
9898
var actualRatio = innerWidth / innerHeight;
9999

100100

101-
//Stretch
102-
width = innerWidth;
103-
height = innerHeight;
104101

105102

103+
//No scale
104+
var margin_left = ((innerWidth - width) / 2);
105+
margin_left = margin_left > 0 ? margin_left : 0;
106+
var margin_top = ((innerHeight - height) / 2);
107+
margin_top = margin_top > 0 ? margin_top : 0;
108+
app_container.style.marginLeft = margin_left + "px";
109+
app_container.style.marginTop = margin_top + "px";
106110

107111
var dpi = 1;
108112

-45.7 KB
-142 KB
Binary file not shown.
41 KB
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)