-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
115 lines (108 loc) · 2.79 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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<html>
<head>
<script src="js/easeljs-0.6.1.min.js"></script>
<script src="js/Settlement.js"></script>
<script src="js/gameInit.js"></script>
<script src="js/gamelayer.js"></script>
<script src="js/map.js"></script>
<script src="js/perlin.js"></script>
<script src="js/ui.js"></script>
<script src="js/naturaldisaster.js"></script>
<script src="js/tutorial.js"></script>
<style>
body {
background-color:grey;
}
canvas{
background-color:white;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
position:absolute;
}
#uiStage{
margin-top:450px;
border-top:10px solid gray;
}
button{
position:absolute;
width:100px;
height:25px;
border-radius: 8px;
border: 1px solid black;
background-color:rgba(200,200,200,0.5);
/*opacity: 1;*/
}
button:hover{
/*opacity: 0.5;*/
background-color:rgba(200,200,200,1);
}
p{
font-family: "Arial";
font-size:12px;
}
#dialog{
font-size:20px;
width:500px;
padding:0;
margin:0;
}
#continue{
display:none;
}
#currentPop{
font-size: 24px;
}
progress
{
position:absolute;
height:450px;
width:900px;
background:red;
}
progress::-webkit-progress-bar
{
background:white;
}
progress::-webkit-progress-value:after
{
content:"Loading...";
margin-left:350px;
padding-top:125px;
display:block;
font-size:48px;
font-family: monaco, sans-serif
}
progress::-webkit-progress-value
{
opacity:.5;
/* IE10 Consumer Preview */
background-image: -ms-radial-gradient(center, circle farthest-corner, #FFFFFF 0%, #00A3EF 100%);
/* Mozilla Firefox */
background-image: -moz-radial-gradient(center, circle farthest-corner, #FFFFFF 0%, #00A3EF 100%);
/* Opera */
background-image: -o-radial-gradient(center, circle farthest-corner, #FFFFFF 0%, #00A3EF 100%);
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(radial, center center, 0, center center, 506, color-stop(0, #FFFFFF), color-stop(1, #00A3EF));
/* Webkit (Chrome 11+) */
background-image: -webkit-radial-gradient(center, circle farthest-corner, #FFFFFF 0%, #00A3EF 100%);
/* W3C Markup, IE10 Release Preview */
background-image: radial-gradient(circle farthest-corner at center, #FFFFFF 0%, #00A3EF 100%);
}
</style>
</head>
<body onLoad="initGame();">
<canvas id="screen" width="900" height="600"></canvas>
<canvas id="uiStage" width = "900" height = "150"></canvas>
<button id = "pause" onclick = "setPause()"> Pause </button>
<button id = "continue" onclick = "resume()">Continue</button>
<p id = "currentPop"> </p>
<p id = "popsize"> </p>
<p id = "heatPref"></p>
<p id = "waterPref"></p>
<p id = "nutrientPref"></p>
<p id = "species"></p>
<p id = "dialog"></p>
<!--<object height="0px" style="width:0;height:0;padding:0;margin:0;" width="10px" data="http://www.nyan.cat/music/original.mp3"></object>-->
</body>
</html>