-
Notifications
You must be signed in to change notification settings - Fork 0
/
kandy_jump.html
74 lines (74 loc) · 2.37 KB
/
kandy_jump.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html>
<head><title>Kandy Jump</title>
<style type="text/css">
body
{
background-color: black;
}
.centerDiv
{
width: 770px;
height: 80%;
margin-top: 50px;
margin-bottom: 50px;
margin-left: auto;
margin-right: auto;
}
.introDiv
{
width: 450px;
float: right;
}
.splashDiv
{
float: top;
height: 50%;
}
.rulesDiv
{
font-family: sans-serif;
font-weight: bold;
font-size: 16px;
color: white;
margin-left: auto;
margin-right: auto;
}
.gameDiv
{
width: 300px;
background-color:white;
float: left;
}
</style>
<script src="out/kandy_jump.js"></script>
</head>
<body onload="initialize()">
<img id="player" src="res/player.png" style="display: none;">
<img id="flash" src="res/flash.png" style="display: none;">
<img id="cloud1" src="res/cloud1.png" style="display: none;">
<img id="cloud2" src="res/cloud2.png" style="display: none;">
<img id="gumdrop1" src="res/gumdrop1.png" style="display: none;">
<img id="gumdrop2" src="res/gumdrop2.png" style="display: none;">
<img id="gumdrop3" src="res/gumdrop3.png" style="display: none;">
<img id="gumdrop4" src="res/gumdrop4.png" style="display: none;">
<img id="gumdrop5" src="res/gumdrop5.png" style="display: none;">
<img id="apple" src="res/apple.png" style="display: none;">
<div class="centerDiv">
<div class="gameDiv">
<canvas id="game" width="300" height="500"></canvas>
</div>
<div class="introDiv">
<div class="splashDiv"><img src="img/splashscreen.png"></div>
<div class="rulesDiv">
<p>Gumdrops = 1 point!</p>
<p>Apples = -10 points!</p>
<p>Double points when caught in the air!</p>
<p>Move with left and right arrows</p>
<p>Space bar to jump</p>
<p>[N] key for a new game</p>
</div>
</div>
</div>
</body>
</html>