-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·48 lines (40 loc) · 1.33 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<script src="lib/crafty.0.6.3.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: #000000;
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>Crafty's Adventure</h2>
<p>Help Crafty 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>
<p class="bottom">Created for the "Introduction to Crafty Game Engine" tutorial on <a href="http://buildnewgames.com" target="_blank">Build New Games</a>.
</body>
</html>