Make Ground instance available for debugging
This commit is contained in:
parent
8cce7fb41f
commit
c0b2ac2e86
5
index.js
5
index.js
|
@ -296,12 +296,13 @@ function outputUtterance(who, what) {
|
||||||
$("<span/>").text(what).addClass("utterance")]).addClass("utterance");
|
$("<span/>").text(what).addClass("utterance")]).addClass("utterance");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var G;
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$("#chat_form").submit(function (e) { e.preventDefault(); return false; });
|
$("#chat_form").submit(function (e) { e.preventDefault(); return false; });
|
||||||
$("#nym_form").submit(function (e) { e.preventDefault(); return false; });
|
$("#nym_form").submit(function (e) { e.preventDefault(); return false; });
|
||||||
if (!($("#nym").val())) { $("#nym").val("nym" + Math.floor(Math.random() * 65536)); }
|
if (!($("#nym").val())) { $("#nym").val("nym" + Math.floor(Math.random() * 65536)); }
|
||||||
|
|
||||||
var g = new Ground(function () {
|
G = new Ground(function () {
|
||||||
console.log('starting ground boot');
|
console.log('starting ground boot');
|
||||||
// World.spawn(new Spy());
|
// World.spawn(new Spy());
|
||||||
spawnJQueryDriver();
|
spawnJQueryDriver();
|
||||||
|
@ -388,5 +389,5 @@ $(document).ready(function () {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
g.startStepping();
|
G.startStepping();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue