-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
32 lines (31 loc) · 1.88 KB
/
game.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<html lang="en">
<head>
<meta charset="ansi"/>
<title>BIT . TRIP EDITOR</title>
<link rel="stylesheet" href="src/web/style.css">
<link rel="shortcut icon" href="https://i.ibb.co/qyZc3mY/concept512.png"/>
<meta name="viewport" content= "width=640, user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="mobile-web-app-capable" content="yes"/>
</head>
<body onkeypress="keys(event)" oncontextmenu="return false" onselectstart="return false" ondragstart="return false" onhashchange="debug()">
<script>
function getMouse(event) { mouse = event; }
</script>
<canvas id="game" onmousemove="getMouse(event)" oncontextmenu="getMouse(event)" onclick="getMouse(event)" ondblclick="getMouse(event)" onmousedown="getMouse(event)" onmouseenter="getMouse(event)" onmouseleave="getMouse(event)" onmouseout="if (mouseoutalert && (event.clientX < 56 * (1280/window.innerWidth) || event.clientX > 1224 * (1280/window.innerWidth))) alert('Mouse has left the game.\n\nOK to resume')" onmouseover="getMouse(event)" onmouseup="getMouse(event)" ontouchstart="getMouse(event)" ontouchmove="getMouse(event)" ontouchend="getMouse(event)" click="getMouse(event)" width="1280" height="720"></canvas>
<a id="info" style='position:absolute;top:0;left:0;font:8px "BIT.TRIP SMALL",sans-serif,Arial,sans-serif,Courier New,monospaced,Times New Roman,serif;color:white;'></a>
<div id="debugee"><textarea wrap="off" id="debugee-js-draw"></textarea></div>
</body>
</html>
<script src="src/web/struct.js"></script>
<script src="src/web/step.js"></script>
<script src="src/web/funcs.js"></script>
<script src="src/web/init.js"></script>
<script src="src/web/debug.js"></script>
<script>
room_restart();
eval(location.hash.substr(1));
startAnimating(60);
//setInterval(draw, 1); <!--cursor: none; -->
</script>