wasm-test/index.html.template

102 lines
3.2 KiB
Plaintext
Raw Normal View History

2024-11-15 12:29:27 +01:00
<!DOCTYPE html>
<html>
<head>
2024-11-15 20:58:15 +01:00
<title>Penger Party</title>
2024-11-15 12:29:27 +01:00
<script src="load.js"></script>
<style>
#demo-canvas:hover {
cursor: none
}
.penger-img {
width: 64px;
image-rendering: pixelated;
}
2024-11-18 15:59:28 +01:00
.players-img {
margin-right: 10px;
}
2024-11-15 20:58:15 +01:00
h1 {
text-align: center;
font-size: 1.5em;
margin: 0px;
}
2024-11-25 09:00:35 +01:00
h3 {
margin-top: 7px;
}
.info {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.info > * {
margin-right: 1rem;
}
#chat {
width: 69%;
}
2024-11-15 12:47:56 +01:00
@media screen and (min-width: calc(800px + calc(64px * 4))) {
2024-11-15 20:58:15 +01:00
#css-bullshit {
2024-11-15 12:29:27 +01:00
content: "";
display: table;
clear: both;
}
#left {
float: left;
width: 50%;
}
#right {
float: right;
2024-11-15 12:47:56 +01:00
width: calc(100% - 800px - 25px);
position: absolute;
right: 0px;
2024-11-15 12:29:27 +01:00
}
}
</style>
</head>
<body>
2024-11-15 20:58:15 +01:00
<h1>Penger Party</h1>
<div id="css-bullshit">
<div id="left">
<canvas id="demo-canvas"></canvas>
<h3>Instructions:</h3>
2024-11-25 09:00:35 +01:00
<ul>
<li>Press q, d or arrow key to move</li>
<li>Press shift key to slow down</li>
<li>Press space key to jump</li>
<li>Penger is afraid of your stinky fingers</li>
<li>Choose your username to play online</li>
</ul>
2024-11-15 20:58:15 +01:00
</div>
<div id="right">
2024-11-18 15:59:28 +01:00
<h3>Multiplayer:</h3>
2024-11-25 09:00:35 +01:00
<div class="info">
<p>
Play online with the pseudo name :
<input id="pseudo" placeholder="Penger Lover" />
<button id="play">Play</button>
</p>
<p>Playing map : <span id="map-name">Offline Map</span></p>
<p>Next map in : <span id="map-time">-1</span></p>
<p>Coin collected : <span id="nb-coin">0</span></p>
</div>
<div class="info">
<div>
<h3>Players:</h3>
<ul id="players">Not connected</ul>
</div>
<div>
<h3>Today leaderboard:</h3>
<ul id="leader-today"></ul>
</div>
<div>
<h3>Total leaderboard:</h3>
<ul id="leader-total"></ul>
</div>
</div>
2024-11-15 20:58:15 +01:00
<h3>Choose your penger:</h3>
2024-11-25 09:00:35 +01:00
<!-- penger images src -->
2024-11-15 20:58:15 +01:00
</div>
2024-11-15 12:29:27 +01:00
</div>
2024-11-15 20:58:15 +01:00
<h3>Made by a Penger Entousiast</h3>
2024-11-15 12:29:27 +01:00
</body>
</html>