Breakout
This commit is contained in:
parent
f83c7c0781
commit
9910fd5799
4 changed files with 572 additions and 20 deletions
|
|
@ -8,16 +8,33 @@
|
|||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: #aaaaaa;
|
||||
background-color: #222222;
|
||||
color: white;
|
||||
}
|
||||
canvas {
|
||||
background-color: black;
|
||||
}
|
||||
.mono {
|
||||
font-family: monospace;
|
||||
}
|
||||
</style>
|
||||
<title>Pong</title>
|
||||
<title>Breakout</title>
|
||||
</head>
|
||||
<script type="module">
|
||||
import init from './breakout.js';
|
||||
init();
|
||||
</script>
|
||||
<body>
|
||||
<div>
|
||||
<canvas id="breakout"></canvas>
|
||||
<p style="text-align: center;">
|
||||
Use
|
||||
<span class="mono">⬅</span>
|
||||
<span class="mono">➡</span>
|
||||
to move and
|
||||
<span class="mono">Space</span>
|
||||
to serve.
|
||||
</p>
|
||||
</div>
|
||||
<script type="module">
|
||||
import init from './breakout.js';
|
||||
init();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in a new issue