-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcrafty.html
45 lines (37 loc) · 865 Bytes
/
crafty.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
<html>
<head>
<script src="lib/crafty.js"></script>
<script src="src/game.js"></script>
<script src="src/components.js"></script>
<script src="src/scenes.js"></script>
<script>
window.addEventListener('load', Game.start);
</script>
<style type="text/css" media="screen">
body {
background: #21394D;
text-align: center;
color: #DDD;
font-family: Arial;
}
.controls {
color: #BBB;
}
#cr-stage { margin: 20px auto 0; }
.bottom {
font-size: 12px;
color: #888;
margin-top: 50px;
}
.bottom a {
color: #AAA;
}
</style>
</head>
<body>
<h2>Milly's Adventure</h2>
<p>Help Milly visit her friends in each village.</p>
<p class="controls">Controls: Use W, A, S, and D or arrow keys to move around.</p>
<div id="cr-stage"></div>
</body>
</html>