-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (61 loc) · 1.95 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
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>Compiler Test UI</title>
<link rel="stylesheet" type="text/css" href="style/main.css">
</head>
<body>
<div id="content">
<div class="header">Goals:</div>
<div id="goals"></div><br>
<div id="gameContainer"></div>
<div id="resources">
<p><b>r1: </b><span id="r1"></span></p>
<p><b>r2: </b><span id="r2"></span></p>
<p><b></b><span id="click"></span></p>
</div>
<button onclick="restartGame();">Restart Game</button>
</div>
<script src="jquery.js"></script>
<script src="phaser.js"></script>
<script src="healthbarstandalone.js"></script>
<!--script src="js/5-16-2016Test-NEWHealthBar.js"></script-->
<!--script src="js/bugFixing5-26.js"></script-->
<!--script src="js/6-1-resourceBarText.js"></script-->
<script src="temp.js"></script>
<!--script src="js/test.js"></script-->
<script>
var game;
var State = {'debugMode' : true};
State.get = function(variableName){
return this[variableName];
};
State.set = function(varName, varValue){
console.log("calling DEBUG State.set")
};
var Display = {}
Display.setAvatars = function(State){
console.log("calling DEBUG setAvatars")
}
Display.setStats = function(storyStats){
console.log("Calling DEBUG setStats")
}
var StoryAssembler = {};
StoryAssembler.refreshNarrative = function(){
console.log("StoryAssembler.refreshNarrative called in test framework.")
}
$( document ).ready(function() {
game = new Phaser.Game(1000, 1000, Phaser.AUTO, 'gameContainer', { preload: preload, create: create, update: update, render: render }, true);
var goals = getAspGoals();
for (var i=0; i<goals.length;i++){
document.getElementById("goals").innerHTML += "* " + goals[i] + "<br>";
}
});
function restartGame(){
document.getElementById('gameContainer').innerHTML = "";
game = new Phaser.Game(500, 500, Phaser.AUTO, 'gameContainer', { preload: preload, create: create, update: update, render: render}, false);
}
</script>
</body>
</html>