update
All checks were successful
Create and publish a Docker image 🚀 / build-and-push-image (push) Successful in 1m15s
All checks were successful
Create and publish a Docker image 🚀 / build-and-push-image (push) Successful in 1m15s
This commit is contained in:
@@ -93,6 +93,23 @@ body {
|
||||
<link id="-gd-engine-icon" rel="icon" type="image/png" href="D.icon.png" />
|
||||
<link rel="apple-touch-icon" href="D.apple-touch-icon.png"/>
|
||||
<script src="https://telegram.org/js/telegram-web-app.js?59"></script>
|
||||
<script>
|
||||
const tg = window.Telegram.WebApp;
|
||||
tg.expand();
|
||||
|
||||
function resizeCanvas() {
|
||||
const canvas = document.getElementById("canvas");
|
||||
const h = tg.viewportStableHeight;
|
||||
const w = window.innerWidth;
|
||||
|
||||
canvas.style.width = w + "px";
|
||||
canvas.style.height = h + "px";
|
||||
}
|
||||
|
||||
tg.onEvent("viewportChanged", resizeCanvas);
|
||||
window.addEventListener("resize", resizeCanvas);
|
||||
resizeCanvas();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="canvas">
|
||||
@@ -111,7 +128,7 @@ body {
|
||||
|
||||
<script src="D.js"></script>
|
||||
<script>
|
||||
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":1,"emscriptenPoolSize":8,"ensureCrossOriginIsolationHeaders":true,"executable":"D","experimentalVK":false,"fileSizes":{"D.pck":3159036,"D.wasm":38034280},"focusCanvas":true,"gdextensionLibs":[],"godotPoolSize":4};
|
||||
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":1,"emscriptenPoolSize":8,"ensureCrossOriginIsolationHeaders":true,"executable":"D","experimentalVK":false,"fileSizes":{"D.pck":3158764,"D.wasm":38034280},"focusCanvas":true,"gdextensionLibs":[],"godotPoolSize":4};
|
||||
const GODOT_THREADS_ENABLED = false;
|
||||
const engine = new Engine(GODOT_CONFIG);
|
||||
|
||||
|
||||
BIN
templates/D.pck
BIN
templates/D.pck
Binary file not shown.
Reference in New Issue
Block a user