-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
86 lines (82 loc) · 2.27 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
<!DOCTYPE html>
<html>
<head>
<title>Adventure.js</title>
<meta charset="UTF-8">
<meta name="description" content="An adventure game engine written in Javascript">
<!--
<link rel="stylesheet" type="text/css" href="/assets/css/style.css">
-->
<!-- util libs -->
<script src="lib/util.js"></script>
<!-- astar libs (https://github.com/bgrins/javascript-astar) -->
<script src="lib/graph.js"></script>
<script src="lib/astar.js"></script>
<!-- adventure libs -->
<script src="src/adventure.js"></script>
<script src="src/adventure-room.js"></script>
<script src="src/adventure-asset.js"></script>
<script src="src/adventure-sprite.js"></script>
<script src="src/adventure-item.js"></script>
<script src="src/adventure-player.js"></script>
<script src="src/adventure-inventory.js"></script>
<!-- game specific -->
<script src="game/maps/oldfire.js"></script>
<script src="game/rooms/oldfire.js"></script>
<script src="game/maps/sewer.js"></script>
<script src="game/rooms/sewer.js"></script>
<script src="game/game.js"></script>
<script src="game/items/dog.js"></script>
<script src="game/items/bottle.js"></script>
<script src="game/items/chickenleg.js"></script>
<style>
body { margin:0; padding:0; }
.dialog {
font-family: Tahoma, Geneva, sans-serif;
color: #fff;
text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}
.man-dialog {
color: #aab7fd;
font-size: 120%;
}
.well-dialog {
color: #b4a989;
}
.status {
position: absolute;
bottom: 0;
width: 100%;
padding:2px 5px 3px;
font-family: Tahoma, Geneva, sans-serif;
background: rgba(0,0,0,.4);
color: #fff;
}
.pocketed {
background-color: #fff;
border-radius: 10px;
}
/* TODO get rid of styles and handle thru code */
.mirror {
-moz-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
-o-transform: scaleX(-1);
transform: scaleX(-1);
-ms-filter: fliph; /*IE*/
filter: fliph; /*IE*/
}
.flip {
-moz-transform: scaleY(-1);
-webkit-transform: scaleY(-1);
-o-transform: scaleY(-1);
transform: scaleY(-1);
-ms-filter: flipv; /*IE*/
filter: flipv; /*IE*/
}
</style>
<body>
<script>
</script>
</body>
<button onClick="if (localStorage.saveGame) game.load(); else alert('No save game found!');" style="float:right;">load!</button>
</html>