|
8 | 8 | <link rel="icon" type="image/x-icon" href="Game.ico">
|
9 | 9 |
|
10 | 10 | <!-- Load custom style sheet -->
|
11 |
| - <link rel="stylesheet" type="text/css" href="theme/love.css"> |
| 11 | + <style> |
| 12 | + body { |
| 13 | + background-repeat: no-repeat; |
| 14 | + font-family: arial; |
| 15 | + margin: 0; |
| 16 | + padding: none; |
| 17 | + background-color: rgb( 154, 205, 237 ); |
| 18 | + color: rgb( 28, 78, 104 ); |
| 19 | + } |
| 20 | + |
| 21 | + button { |
| 22 | + font-size: 20px |
| 23 | + } |
| 24 | + |
| 25 | + footer { |
| 26 | + font-family: arial; |
| 27 | + font-size: 12px; |
| 28 | + padding-left: 10px; |
| 29 | + position:absolute; |
| 30 | + bottom: 0; |
| 31 | + width: 100%; |
| 32 | + } |
| 33 | + </style> |
12 | 34 | </head>
|
13 | 35 | <body>
|
14 | 36 | <center>
|
15 | 37 | <div>
|
16 |
| - <canvas id="loadingCanvas" oncontextmenu="event.preventDefault()" width="1920" height="1080"></canvas> |
17 |
| - <canvas id="canvas" oncontextmenu="event.preventDefault()" width="1920" height="1080"></canvas> |
| 38 | + <canvas id="canvas" style="visibility: hidden; position: absolute; width: 100%; height: 100%; display: block;" oncontextmenu="event.preventDefault()"></canvas> |
| 39 | + <canvas id="loadingCanvas" style="position: absolute; width: 100%; height: 100%; display: block;" oncontextmenu="event.preventDefault()"></canvas> |
18 | 40 | </div>
|
19 | 41 | </center>
|
20 | 42 |
|
|
28 | 50 | else if(canvas.mozRequestFullScreen)
|
29 | 51 | canvas.mozRequestFullScreen();
|
30 | 52 | }
|
31 |
| - function FullScreenHook(){ |
32 |
| - var canvas = document.getElementById("canvas"); |
33 |
| - canvas.width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; |
34 |
| - canvas.height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; |
35 |
| - } |
| 53 | + // function FullScreenHook(){ |
| 54 | + // var canvas = document.getElementById("canvas"); |
| 55 | + // canvas.width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; |
| 56 | + // canvas.height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; |
| 57 | + // } |
36 | 58 | var loadingContext = document.getElementById('loadingCanvas').getContext('2d');
|
37 | 59 | function drawLoadingText(text) {
|
38 | 60 | var canvas = loadingContext.canvas;
|
| 61 | + canvas.width = window.innerWidth; |
| 62 | + canvas.height = window.innerHeight; |
39 | 63 |
|
40 | 64 | loadingContext.fillStyle = "rgb(142, 195, 227)";
|
41 | 65 | loadingContext.fillRect(0, 0, canvas.scrollWidth, canvas.scrollHeight);
|
|
104 | 128 | </script>
|
105 | 129 | <script type="text/javascript" src="game.js"></script>
|
106 | 130 | <script async type="text/javascript" src="love.js" onload="applicationLoad(this)"></script>
|
107 |
| - <footer> |
| 131 | + <!-- <footer> |
108 | 132 | <p><button onclick="goFullScreen();">Go Fullscreen</button></p>
|
109 |
| - </footer> |
| 133 | + </footer> --> |
110 | 134 | </body>
|
111 | 135 | </html>
|
0 commit comments