2024-11-15 12:29:27 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<script src="load.js"></script>
|
|
|
|
<style>
|
|
|
|
#demo-canvas:hover {
|
|
|
|
cursor: none
|
|
|
|
}
|
|
|
|
.penger-img {
|
|
|
|
width: 64px;
|
|
|
|
image-rendering: pixelated;
|
|
|
|
}
|
2024-11-15 12:47:56 +01:00
|
|
|
@media screen and (min-width: calc(800px + calc(64px * 4))) {
|
2024-11-15 12:29:27 +01:00
|
|
|
body {
|
|
|
|
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;
|
|
|
|
top: 0px;
|
|
|
|
right: 0px;
|
2024-11-15 12:29:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="left">
|
|
|
|
<canvas id="demo-canvas"></canvas>
|
|
|
|
<br>
|
|
|
|
<button id='descaling'>scale - 1</button>
|
|
|
|
<button id='scaling'>scale + 1</button>
|
|
|
|
<button id='reset'>reset velocity</button>
|
|
|
|
<br>
|
|
|
|
<p id='scale'></p>
|
|
|
|
<p>Press arrow key to move</p>
|
|
|
|
<p>Press space key to jump</p>
|
|
|
|
<p>Penger is afraid of your stinky hand</p>
|
|
|
|
</div>
|
|
|
|
<div id="right">
|
|
|
|
<h3>Choose your penger:</h3>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|