html/core/engine.js in gamefic-sdk-1.4.0 vs html/core/engine.js in gamefic-sdk-1.4.1

- old
+ new

@@ -27,16 +27,11 @@ return { start: function() { Opal.GameficOpal.$load_scripts(); Opal.GameficOpal.$static_plot().$introduce(Opal.GameficOpal.$static_character()); lastPrompt = Opal.GameficOpal.$static_plot().$scenes().$fetch(Opal.GameficOpal.$static_character().$scene()).$prompt_for(Opal.GameficOpal.$static_character()); - var response = getResponse(true); - doReady(response); - handle(response); - finishCallbacks.forEach(function(callback) { - callback(response); - }); + this.update(''); }, update: function(input) { if (input != null) { Opal.GameficOpal.$static_character().$queue().$push(input); } @@ -56,13 +51,9 @@ response.output = updateResponse.output + response.output; handle(response); finishCallbacks.forEach(function(callback) { callback(response); }); - /*var testCommand = Opal.GameficOpal.$static_character().$queue().$shift(); - if (typeof testCommand == 'string') { - setTimeout("Gamefic.update(" + JSON.stringify(testCommand) + ");", 1); - }*/ if (Opal.GameficOpal.$static_character().$queue().$length() > 0) { setTimeout("Gamefic.update();", 1); } }, onStart: function(callback) {