Listings 13.17 and 13.18 - Importing modules for The Crypt
JS Bin
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/dofuci.js"></script>
<!-- Map code -->
<script src="http://output.jsbin.com/dipaxo.js"></script>
<!-- Game initialization -->
<script src="http://output.jsbin.com/fisupe.js"></script>
JS:
var game = theCrypt.getGame();