-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
47 lines (43 loc) · 2.67 KB
/
index.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!doctypehtml>
<html lang=en-us>
<head>
<meta charset=utf-8>
<meta content="text/html; charset=utf-8" http-equiv=Content-Type>
<title>raylib web game</title>
<meta content="raylib web game" name=title>
<meta content="New raylib web videogame, developed using raylib videogames library" name=description>
<meta content="raylib, games, html5, programming, C, C++, library, learn, videogames" name=keywords>
<meta content="width=device-width" name=viewport>
<meta content="raylib web game" property=og:title>
<meta content=image/png property=og:image:type>
<meta content=https://www.raylib.com/common/img/raylib_logo.png property=og:image>
<meta content=raylib.com property=og:site_name>
<meta content=https://www.raylib.com/games.html property=og:url>
<meta content="New raylib web videogame, developed using raylib videogames library" property=og:description>
<meta content=summary name=twitter:card>
<meta content=@raysan5 name=twitter:site>
<meta content="raylib web game" name=twitter:title>
<meta content=https://www.raylib.com/common/raylib_logo.png name=twitter:image>
<meta content=https://www.raylib.com/games.html name=twitter:url>
<meta content="New raylib web game, developed using raylib videogames library" name=twitter:description>
<link href=https://www.raylib.com/favicon.ico rel="shortcut icon">
<style>
body {
margin: 0;
overflow: hidden
}
canvas.emscripten {
border: 0 none;
background-color: #000;
touch-action: none;
}
</style>
<script src=https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js/dist/FileSaver.min.js></script>
<script>function saveFileFromMEMFSToDisk(e, a) { var i, o = FS.readFile(e); i = new Blob([o.buffer], { type: "application/octet-binary" }), saveAs(i, a) }</script>
</head>
<body><canvas class=emscripten id=canvas oncontextmenu=event.preventDefault() tabindex=-1></canvas>
<p id=output>
<script>var Module = { print: function () { var n = document.getElementById("output"); return n && (n.value = ""), function (e) { arguments.length > 1 && (e = Array.prototype.slice.call(arguments).join(" ")), console.log(e), n && (n.value += e + "\n", n.scrollTop = n.scrollHeight) } }(), canvas: document.getElementById("canvas") }; Module.canvas.width = window.innerWidth, Module.canvas.height = window.innerHeight, window.addEventListener("resize", (function () { Module.canvas.width = window.innerWidth, Module.canvas.height = window.innerHeight })), window.addEventListener("move", (function () { console.log("Window moved") }))</script>
<script src=raylib-game-template.js async></script>
</body>
</html>