-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkappenball.html
executable file
·68 lines (62 loc) · 1.66 KB
/
kappenball.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Kappenball</title>
<link rel="shortcut icon" href="favicon.ico"/>
<style>
body {
background-color: whiteg;
text-align: center;
font-family: Ubuntu Mono;
}
#title {
color: black;
font-size: 200%;
font-style: normal;
margin: 1px;
border: 1px;
}
#balls {
margin-top: 5px;
}
#myCanvas {
margin-top: -20px;
}
section.footer {
color: black;
font-family: Ubuntu Mono;
font-style: normal;
font-size: small;
}
#disclaimer {
font-size: 74%;
color: gray;
}
</style>
</head>
<body style="text-align: center">
<section>
<div id="title"><p id="balls" style="font-size: 15pt">Kappenball</p><br/></div>
</section>
<div>
<div style="width:900px;text-align:center;display:inline">
<span style="float:left;">Score: <output id="kappenball-score"></output>
</span>
<span style="float:right;">Energy: <output id="kappenball-energy"></output></span>
<div style="clear: both;"></div>
</div>
<canvas id="kappenball-canvas" width="900" height="500" style="display:inline;text-align:center "></canvas>
<div>
<input type="range" min="0" max="100" value="0" class="slider" id="kappenball-stochasticity" style="width:900px;"/>
</div>
<div>
<button id="kappenball-newball" style="text-align:right">New Ball</button>
<button id="kappenball-pause" style="text-align:right">Pause</button>
</div>
<output id="kappenball-count"></output>
<script src="./scripts/ballworld/ballworld.js"></script>
<script src="./scripts/ballworld/kappenball.js"></script>
</div>
</body>
</html>