UNPKG

krying

Version:

krying — games hub, AI, movies, and tools

130 lines (107 loc) • 4.63 kB
<!doctype html> <html lang="en-us"> <base href="https://cdn.jsdelivr.net/gh/sea-bean-unblocked/ghost-assets-for-games@main/balatro/"> <head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, minimum-scale=1, maximum-scale=1"> <title>Balatro</title> <link rel="stylesheet" type="text/css" href="theme/love.css"> <body> <center> <div> <h1>Balatro - Kobran GAMES</h1> <h2>We did NOT make Balatro</h2> <h3>Loading... Please Wait.</h3> <p>Hint: Click the "Play In Newtab" button to play in newtab</p> <canvas id="loadingCanvas" oncontextmenu="event.preventDefault()" width="800" height="600"></canvas> <canvas id="canvas" oncontextmenu="event.preventDefault()" width="100%" height="100%"></canvas> </div> </center> <script type='text/javascript'> window.callad = () => { window.parent.postMessage({ type: 'adcall' }, '*'); } var canvas = document.getElementById("loadingCanvas"); canvas.width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; canvas.height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; function goFullScreen() { var canvas = document.getElementById("canvas"); if (canvas.requestFullScreen) canvas.requestFullScreen(); else if (canvas.webkitRequestFullScreen) canvas.webkitRequestFullScreen(); else if (canvas.mozRequestFullScreen) canvas.mozRequestFullScreen(); } function FullScreenHook() { var canvas = document.getElementById("canvas"); canvas.width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; canvas.height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; } var loadingContext = document.getElementById('loadingCanvas').getContext('2d'); function drawLoadingText(text) { var canvas = loadingContext.canvas; loadingContext.fillStyle = "rgb(142, 195, 227)"; loadingContext.fillRect(0, 0, canvas.scrollWidth, canvas.scrollHeight); loadingContext.font = '2em arial'; loadingContext.textAlign = 'center' loadingContext.fillStyle = "rgb( 11, 86, 117 )"; loadingContext.fillText(text, canvas.scrollWidth / 2, canvas.scrollHeight / 2); } window.onload = function() { window.focus(); }; window.onclick = function() { window.focus(); }; window.addEventListener("keydown", function(e) { if ([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) { e.preventDefault(); } }, false); var Module = { arguments: ["./game.love"], INITIAL_MEMORY: 256000000, printErr: console.error.bind(console), canvas: (function() { var canvas = document.getElementById('canvas'); canvas.addEventListener("webglcontextlost", function(e) { alert('WebGL context lost. You will need to reload the page.'); e.preventDefault(); }, false); return canvas; })(), setStatus: function(text) { if (text) { drawLoadingText(text); } else if (Module.remainingDependencies === 0) { document.getElementById('loadingCanvas').style.display = 'none'; document.getElementById('canvas').style.visibility = 'visible'; } }, totalDependencies: 0, remainingDependencies: 0, monitorRunDependencies: function(left) { this.remainingDependencies = left; this.totalDependencies = Math.max(this.totalDependencies, left); Module.setStatus(left ? 'Preparing... (' + (this.totalDependencies - left) + '/' + this.totalDependencies + ')' : 'All downloads complete.'); } }; Module.setStatus('Downloading...'); window.onerror = function(event) { Module.setStatus('Exception thrown, see JavaScript console'); Module.setStatus = function(text) { if (text) Module.printErr('[post-exception status] ' + text); }; }; var applicationLoad = function(e) { Love(Module); } </script> <script type="text/javascript" src="game.js?v=d7e34743-2fea-4de6-8a0e-1103b5fcf07f"></script> <script async type="text/javascript" src="love.js" onload="applicationLoad(this)"></script> </body> </html>