-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (36 loc) · 1.2 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
<html>
<!DOCTYPE html>
<head>
<title>Terrain RPG</title>
<script src="extend.js"></script>
<script src="behavior_tree.js"></script>
<script src="test_behavior_tree.js"></script>
<script src="task.js"></script>
<script src="util.js"></script>
<script src="jaws.js"></script>
<script src="config.js"></script>
<script src="creatures.js"></script>
<script src="terraintypes.js"></script>
<script src="game.js"></script>
</head>
<body>
<canvas width=800 height=600></canvas>
FPS: <span id="fps"></span>
<h3>jaws log</h3>
<div id="jaws-log"></div>
<script>
// TODO: use something like qunit or jasmine instead of poor-mans-unit
var to_test = new BehaviorTree()
testBehaviorTree(to_test)
jaws.assets.add(['images/cloud_x32.png',
'images/terrain/forest_x32.png',
'images/terrain/lake_x32.png',
'images/terrain/mountain_x32.png',
'images/terrain/grass_x32.png',
'images/creatures/nuper_x32.png',
]);
var game = TerrainRPG(jaws);
jaws.start(game);
</script>
</body>
</html>