index.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE html>
  2. <!-- LInE - Free Education, Private Data - http://www.usp.br/line -->
  3. <html lang="pt-br">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="description" content="Educational game for teaching fractions" />
  8. <meta name="keywords" content="ifractions, fraction, game, private data" />
  9. <link rel="shortcut icon" href="./assets/img/scene/flag.png">
  10. <link rel="stylesheet" href="./style/bootstrap/bootstrap.min.css">
  11. <link rel="stylesheet" href="./style/IFractions.css">
  12. <title>iFractions/iFra&ccedil;&otilde;es</title>
  13. </head>
  14. <body>
  15. <div class="container">
  16. <div class="panel panel-primary">
  17. <div class="panel-heading">iFractions game :: by LInE</div>
  18. <div class="panel-body">
  19. <canvas class="ifr-canvas"></canvas>
  20. <div class="ifr-input__container">
  21. <input class="ifr-input" type="text" value="" size="13" maxlength="36">
  22. </div>
  23. <div class="ifr-modal">
  24. <div class="ifr-modal__content">
  25. <span class="ifr-modal__closeButton">&times;</span>
  26. <div class='ifr-modal__infobox'></div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <!-- Load all js files -->
  32. <script src="./js/menus/preMenu_boot.js"></script>
  33. <script src="./js/menus/preMenu_lang.js"></script>
  34. <script src="./js/menus/preMenu_name.js"></script>
  35. <script src="./js/menus/menu_main.js"></script>
  36. <script src="./js/menus/menu_custom.js"></script>
  37. <script src="./js/screens/map.js"></script>
  38. <script src="./js/screens/end.js"></script>
  39. <script src="./js/games/circleOne.js"></script>
  40. <script src="./js/games/squareOne.js"></script>
  41. <script src="./js/games/squareTwo.js"></script>
  42. <!-- <script src="./js/games/scaleOne.js"></script> -->
  43. <script src="./js/moodle/studentReport.js"></script> <!-- FOR MOODLE -->
  44. <script src="./js/moodle/integrationFunctions.js"></script> <!-- FOR MOODLE -->
  45. <script src="./js/gameMechanics.js"></script>
  46. <script src="./js/globals/globals_control.js"></script>
  47. <script src="./js/globals/globals_tokens.js"></script>
  48. <script src="./js/globals/globals_functions.js"></script>
  49. <script src="./js/globals/globals_debug.js"></script>
  50. <script>
  51. const defaultWidth = 1920; // Default width for the Canvas
  52. const defaultHeight = 1080; // Default height for the Canvas
  53. const context = document.querySelector('.ifr-canvas').getContext("2d");
  54. context.canvas.width = defaultWidth;
  55. context.canvas.height = defaultHeight;
  56. // CREATING GAME STATES
  57. game.state.add('boot', bootState);
  58. game.state.add('lang', langState);
  59. game.state.add('loadLang', loadLangState);
  60. game.state.add('name', nameState);
  61. game.state.add('menu', menuState);
  62. game.state.add('customMenu', customMenuState);
  63. game.state.add('map', mapState);
  64. game.state.add('end', endState);
  65. game.state.add('squareOne', squareOne);
  66. game.state.add('circleOne', circleOne);
  67. game.state.add('squareTwo', squareTwo);
  68. // game.state.add('scaleOne', scaleOne);
  69. game.state.add('studentReport', studentReport); // FOR MOODLE
  70. // CALLING FIRST GAME STATE
  71. game.state.start('boot');
  72. </script>
  73. </div>
  74. </body>
  75. </html>