-
Notifications
You must be signed in to change notification settings - Fork 900
/
Copy pathindex.html
49 lines (45 loc) · 1.36 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<html>
<head>
<meta name="viewport" content="width=1920, initial-scale=1">
<style>
.buttonClimb {
background-color: green;
border: none;
color: black;
padding: 35px 35px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 20px;
margin: 1px 1px;
cursor: pointer;
border-radius: 100%;
position: absolute;
left: 150vh;
top: 80vh;
touch-action: manipulation;}
#game {
position: absolute;
top:0;
bottom: 0;
left: 0;
right: 0;
margin:auto;
}
#image {
background:
url('climber_sprite.png') 0px 0px;
}
</style>
</head>
<body onload="startGame()">
<canvas id="game" style="z-index: -1">
</canvas>
<button class="buttonClimb" onclick="accelerate(-0.2)">Climb</button>
<div id="demo">
<!--<p id="image" onmouseover="animateScript()" onmouseout="stopAnimate()">-->
<p id="image"></p>
</div>
</body>
<script src="climbing_the_flagpole.js"></script>
</html>