Basic JS cleanup and debugging; verb syntax changed. Verbs are functions, and the onus is on us to parse the sentence structure and create links between the objects
This commit is contained in:
parent
f68b6989bd
commit
7ba03595eb
2 changed files with 6 additions and 4 deletions
|
|
@ -8,10 +8,13 @@
|
||||||
* @Requires: jQuery 1.3.2 or greater (preferably 1.4.2, I make no guarantee for anything else, but it should work)
|
* @Requires: jQuery 1.3.2 or greater (preferably 1.4.2, I make no guarantee for anything else, but it should work)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var splash_reserved = {};
|
if(typeof splash === "undefined")
|
||||||
|
var splash = {};
|
||||||
|
|
||||||
var game_on = function(json) {
|
var game_on = function(json) {
|
||||||
if(/App Code/.test(json)) return;
|
if(/App Code/.test(json)) return;
|
||||||
|
|
||||||
|
debug(json);
|
||||||
};
|
};
|
||||||
|
|
||||||
if(typeof debug === "undefined")
|
if(typeof debug === "undefined")
|
||||||
|
|
@ -21,12 +24,12 @@ if(typeof debug === "undefined")
|
||||||
};
|
};
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
splash_reserved.wrapper = $("#splash_app_wrapper");
|
splash.wrapper = $("#splash_app_wrapper");
|
||||||
|
|
||||||
/* Rough guesstimation for now on desired height, finagle later. Wait until the frame is our desired height before
|
/* Rough guesstimation for now on desired height, finagle later. Wait until the frame is our desired height before
|
||||||
* "running" our program.
|
* "running" our program.
|
||||||
*/
|
*/
|
||||||
splash_reserved.wrapper.animate({"height": $(window).height() - 50}, 800, function() {
|
splash.wrapper.animate({"height": $(window).height() - 50}, 800, function() {
|
||||||
main();
|
main();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,6 @@ your story. Check out this example:
|
||||||
end
|
end
|
||||||
|
|
||||||
verb ran:
|
verb ran:
|
||||||
who: daniel
|
|
||||||
position: store
|
position: store
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue