diff --git a/public/UnityBuild/snakes/Build/prod.data b/public/UnityBuild/snakes/Build/prod.data index 11e148d..428213a 100644 Binary files a/public/UnityBuild/snakes/Build/prod.data and b/public/UnityBuild/snakes/Build/prod.data differ diff --git a/public/UnityBuild/snakes/Build/prod.wasm b/public/UnityBuild/snakes/Build/prod.wasm index 9b9200d..388e93a 100644 Binary files a/public/UnityBuild/snakes/Build/prod.wasm and b/public/UnityBuild/snakes/Build/prod.wasm differ diff --git a/public/UnityBuild/snakes/index.html b/public/UnityBuild/snakes/index.html index a52edf3..1b12e93 100644 --- a/public/UnityBuild/snakes/index.html +++ b/public/UnityBuild/snakes/index.html @@ -87,7 +87,7 @@ // config.matchWebGLToCanvasSize = false; if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) { - // Mobile device style: fill the whole browser client area with the game canvas: + // Mobile device style: set canvas to 80% of screen size to account for iframe padding var meta = document.createElement('meta'); meta.name = 'viewport'; @@ -96,11 +96,13 @@ container.className = "unity-mobile"; canvas.className = "unity-mobile"; + // Set canvas size to 80% of viewport dimensions + canvas.style.height = "80vh"; + // To lower canvas resolution on mobile devices to gain some // performance, uncomment the following line: // config.devicePixelRatio = 1; - } else { // Desktop style: Render the game canvas in a window that can be maximized to fullscreen: diff --git a/public/UnityBuild/tetris/index.html b/public/UnityBuild/tetris/index.html index a52edf3..1b12e93 100644 --- a/public/UnityBuild/tetris/index.html +++ b/public/UnityBuild/tetris/index.html @@ -87,7 +87,7 @@ // config.matchWebGLToCanvasSize = false; if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) { - // Mobile device style: fill the whole browser client area with the game canvas: + // Mobile device style: set canvas to 80% of screen size to account for iframe padding var meta = document.createElement('meta'); meta.name = 'viewport'; @@ -96,11 +96,13 @@ container.className = "unity-mobile"; canvas.className = "unity-mobile"; + // Set canvas size to 80% of viewport dimensions + canvas.style.height = "80vh"; + // To lower canvas resolution on mobile devices to gain some // performance, uncomment the following line: // config.devicePixelRatio = 1; - } else { // Desktop style: Render the game canvas in a window that can be maximized to fullscreen: