Get Programming with JavaScript - Listing 14.08

Listing 14.08 - Using the new map builder

HTML

<!-- spacer --> <script src="http://output.jsbin.com/juneqo.js"></script> <!-- Player constructor --> <script src="http://output.jsbin.com/nubijex.js"></script> <!-- Place constructor --> <script src="http://output.jsbin.com/ruviso.js"></script> <!-- map data (Kitchen example with challenge) --> <script src="http://output.jsbin.com/jayici.js"></script> <!-- map builder --> <script src="http://output.jsbin.com/paqihi.js"></script> <!-- Game initialization --> <script src="http://output.jsbin.com/mogano.js"></script>

JS

var game = theCrypt.getGame();