index.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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,
  11. body {
  12. width: 100%;
  13. height: 100%;
  14. padding: 0;
  15. margin: 0
  16. }
  17. #wrapper {
  18. width: 100%;
  19. height: 100%;
  20. display: flex;
  21. overflow: hidden;
  22. }
  23. canvas {
  24. width: 100%;
  25. }
  26. #inspector {
  27. width: 25%;
  28. }
  29. </style>
  30. </head>
  31. <body>
  32. <div id="wrapper">
  33. <canvas id='game-canvas'></canvas>
  34. <!-- <div id="inspector"></div> -->
  35. </div>
  36. <!--Starting the game-->
  37. <script>
  38. BABYLONDEVTOOLS.Loader.require("test/index.js").load(function () {
  39. new Test('game-canvas');
  40. });
  41. </script>
  42. </body>
  43. </html>