core: add foundations of idea
This commit is contained in:
parent
cb669ae425
commit
68e386fade
@ -39,6 +39,14 @@ canvas {
|
||||
background: #003161;
|
||||
}
|
||||
|
||||
.cardLeft {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.cardRight {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#navigation {
|
||||
text-align: right;
|
||||
padding: 6px;
|
||||
|
@ -21,6 +21,7 @@
|
||||
<h2 class="first">Completed Projects</h2>
|
||||
<div class="card">
|
||||
<h3 class="cardTop">Pong</h3>
|
||||
<div class="cardLeft">
|
||||
<div class="canvas">
|
||||
<canvas width="750" height="585" id="pong"></canvas>
|
||||
<script src="public/pong.js"></script>
|
||||
@ -31,16 +32,22 @@
|
||||
<button class="button" type="button" onclick = "restartGame()">Restart Game</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cardRight">
|
||||
<p class="cardStats">Left Paddle Height: <span id="leftPaddle"></span></p>
|
||||
<p class="cardStats">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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h3 class="cardTop">Snake</h3>
|
||||
<div class="cardLeft">
|
||||
<div class="canvas">
|
||||
<canvas width="625" height="375" id="snake"></canvas>
|
||||
<script src="public/snake.js"></script>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cardRight">
|
||||
<p class="cardStats">
|
||||
Adjust game size -- Width:
|
||||
<input class="cardStats" id="snakeWidth" type="number" min="2" max="31" value="31">
|
||||
@ -53,6 +60,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="first">
|
||||
<div class="inside">
|
||||
<h2 class="second">Current Personal Projects</h2>
|
||||
|
Loading…
Reference in New Issue
Block a user