index.html 943 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Inspector - test</title>
  5. <meta charset='utf-8'/>
  6. <meta name="viewport" content="width=device-width, user-scalable=no">
  7. <!--Babylon-->
  8. <script src="../tools/DevLoader/BabylonLoader.js"></script>
  9. <style>
  10. html, body {
  11. width: 100%;
  12. height:100%;
  13. margin:0;
  14. padding:0;
  15. overflow:hidden;
  16. font-family:sans-serif;
  17. }
  18. #game-canvas {
  19. width:75%;
  20. height:60%;
  21. position:absolute;
  22. top:0;
  23. left:0;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <!--The game canvas-->
  29. <canvas id="game-canvas"></canvas>
  30. <!--Starting the game-->
  31. <script>
  32. BABYLONDEVTOOLS.Loader.require("test/index.js").load(function() {
  33. new Test('game-canvas');
  34. });
  35. </script>
  36. </body>
  37. </html>