core: move snake stats back to right and move h3 into stats
This commit is contained in:
parent
09376c4820
commit
72a640c0a3
12
index.html
12
index.html
@ -20,7 +20,6 @@
|
|||||||
<div class="inside">
|
<div class="inside">
|
||||||
<h2 class="first">Completed Projects</h2>
|
<h2 class="first">Completed Projects</h2>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h3>Pong</h3>
|
|
||||||
<div class="canvas">
|
<div class="canvas">
|
||||||
<canvas width="750" height="585" id="pong"></canvas>
|
<canvas width="750" height="585" id="pong"></canvas>
|
||||||
<script src="public/pong.js"></script>
|
<script src="public/pong.js"></script>
|
||||||
@ -32,14 +31,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="stats">
|
<div class="stats">
|
||||||
|
<p style="font-size: 22px;">Pong</p>
|
||||||
<p>Left Paddle Height: <span id="leftPaddle"></span></p>
|
<p>Left Paddle Height: <span id="leftPaddle"></span></p>
|
||||||
<p>Right Paddle Height: <span id="rightPaddle"></span></p>
|
<p>Right Paddle Height: <span id="rightPaddle"></span></p>
|
||||||
<a class="navItem" href="https://lab.trianta.dev/Trianta/trianta.dev/src/branch/main/src/pong.js">View Code</a>
|
<a class="navItem" href="https://lab.trianta.dev/Trianta/trianta.dev/src/branch/main/src/pong.js">View Code</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h3>Snake</h3>
|
<div class="canvas">
|
||||||
|
<canvas width="625" height="375" id="snake"></canvas>
|
||||||
|
<script src="public/snake.js"></script>
|
||||||
|
</div>
|
||||||
<div class="stats">
|
<div class="stats">
|
||||||
|
<p style="font-size: 22px;">Snake</p>
|
||||||
<p>
|
<p>
|
||||||
Adjust game size -- Width:
|
Adjust game size -- Width:
|
||||||
<input id="snakeWidth" type="number" min="2" max="31" value="31">
|
<input id="snakeWidth" type="number" min="2" max="31" value="31">
|
||||||
@ -50,10 +54,6 @@
|
|||||||
<p>Food Location: <span id="snakeFood"></span></p>
|
<p>Food Location: <span id="snakeFood"></span></p>
|
||||||
<a class="navItem" href="https://lab.trianta.dev/Trianta/trianta.dev/src/branch/main/src/snake.ts">View Code</a>
|
<a class="navItem" href="https://lab.trianta.dev/Trianta/trianta.dev/src/branch/main/src/snake.ts">View Code</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="canvas">
|
|
||||||
<canvas width="625" height="375" id="snake"></canvas>
|
|
||||||
<script src="public/snake.js"></script>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user