-
Level A Review
+
Level B Review
Drag Picture To Move
diff --git a/templates/GamePlay.html b/templates/GamePlay.html
index e0415ca..93e9218 100644
--- a/templates/GamePlay.html
+++ b/templates/GamePlay.html
@@ -207,13 +207,15 @@
return element;
}*/
var divElement = document.getElementById("GameWindow");
+ var level1 = "test1";
+ var level2 = "test2";
cheerpjCreateDisplay(500,500,divElement);
cheerpjRunMain("Play", "/app/Mario-AI-Interface.jar", "0", "f_l");
console.log("Cheerpj Initialize Succeed!");
-
- PlayLevel("test1", "test1")
+
+ PlayLevel(level1, level1)
.then(function (){alert("Game Over!")})
- .then(PlayLevel("test2", "test2")
+ .then(PlayLevel(level2, level2)
.then(function (){
alert("Go to Evaluation Window")
window.location.href = "/annotation"
diff --git a/templates/data.js b/templates/data.js
index d9edaa5..e1f1a47 100644
--- a/templates/data.js
+++ b/templates/data.js
@@ -63,4 +63,18 @@ function PlayLevel(group, level){
// var addressID = $("input[name='sex']:checked").val();
// alert(addressID)
-}
\ No newline at end of file
+ }
+
+ function getLevels(){
+ var gameLevelstr = "{{gamelevels}}";
+ var levels = gameLevelstr.split(",")
+ levels.replace("'","")
+ gameLevels.replace("[","")
+ gameLevels.replace("]","")
+
+ console.log(levels);
+ console.log(levels[0]);
+ var level1 = "test1";
+ var level2 = "test2";
+ return 0;
+ }
\ No newline at end of file