33 lines
504 B
HTML
33 lines
504 B
HTML
|
<!doctype html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8"/>
|
||
|
<title>JSB Gravity</title>
|
||
|
<style type="text/css">
|
||
|
html, body {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
background-color: #222;
|
||
|
}
|
||
|
body {
|
||
|
display: flex;
|
||
|
flex-flow: column;
|
||
|
color: white;
|
||
|
}
|
||
|
#game {
|
||
|
order: 1;
|
||
|
max-width: 100vw;
|
||
|
max-height: 100vh;
|
||
|
margin: auto;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<canvas id="game">Canvas did not load.</canvas>
|
||
|
<script type="module">
|
||
|
import init from './target/jsb-gravity.js'
|
||
|
init()
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|