@@ -62,5 +62,12 @@
</div>
</template>
<script type="text/javascript" src="bundle.js"></script>
+ <script type="text/javascript">
+ util.loadBase();
+ new game.MainController(
+ document.querySelector('#container'),
+ 'levels.json'
+ ).start();
+ </script>
</body>
</html>
@@ -1,7 +0,0 @@
-/// <reference path="util.ts" />
-/// <reference path="game.ts" />
-
-util.loadBase();
-let container: HTMLElement = document.querySelector('#container');
-let controller = new game.MainController(container, 'levels.json');
-controller.start();