forked from DragonDeltaSquad/ascii-rpg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (65 loc) · 1.42 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
<html>
<head>
<title>ASCII RPG</title>
<style>
body {
background-color: #000040;
font-family:Verdana,Arial;
}
h1, h3 {
color: #FFFF99;
}
h1 > b, h3 > b {
color: #ffd700;
}
#title {
width: 250px;
float:left;
}
#title h3 {
text-align:center;
}
#main {
display:block;
display:relative;
margin:auto;
height: 85%;
}
#getInvolved {
background-color:beige;
border-radius:2px;
padding:5px;
}
.clearfix {
clear:both;
}
</style>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="js/asciiRPG.js"></script>
<script src="js/maze.js"></script>
<script src="js/sprites.js"></script>
<script src="js/sample_world.js"></script>
<script>
var game;
var playerString;
var maze;
$(function(){
game = asciiRPG.load(document.getElementById("main"), gameData);
game.run();
});
</script>
</head>
<body>
<canvas id="main" width=1000 height=900></canvas>
<div style="text-align: center">
<h3>
<b>Controls</b>
<b>'E'</b> to inspect tiles/advance dialog
<b>'Q'</b> to open menu
<b>'W'</b>, <b>'A'</b>, <b>'S'</b>, <b>'D'</b> to move
Check out the code on github to get involved!
<iframe style="display: inline" src="https://ghbtns.com/github-btn.html?user=DragonDeltaSquad&repo=pokemon-ash-key&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
</h3>
</div>
</body>
</html>