index.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. <p><strong>Last update:</strong> 15 de Setembro de 2024</p>
  32. <!-- Load all js files -->
  33. <script src="./js/menus/preMenu_boot.js"></script>
  34. <script src="./js/menus/preMenu_lang.js"></script>
  35. <script src="./js/menus/preMenu_name.js"></script>
  36. <script src="./js/menus/menu_main.js"></script>
  37. <script src="./js/menus/menu_custom.js"></script>
  38. <script src="./js/screens/map.js"></script>
  39. <script src="./js/screens/end.js"></script>
  40. <script src="./js/games/circleOne.js"></script>
  41. <script src="./js/games/squareOne.js"></script>
  42. <script src="./js/games/squareTwo.js"></script>
  43. <!-- <script src="./js/games/scaleOne.js"></script> -->
  44. <script src="./js/moodle/studentReport.js"></script> <!-- FOR MOODLE -->
  45. <script src="./js/moodle/integrationFunctions.js"></script> <!-- FOR MOODLE -->
  46. <script src="./js/gameMechanics.js"></script>
  47. <script src="./js/globals/globals_control.js"></script>
  48. <script src="./js/globals/globals_tokens.js"></script>
  49. <script src="./js/globals/globals_functions.js"></script>
  50. <script src="./js/globals/globals_debug.js"></script>
  51. <script>
  52. const defaultWidth = 1920; // Default width for the Canvas
  53. const defaultHeight = 1080; // Default height for the Canvas
  54. const context = document.querySelector('.ifr-canvas').getContext("2d");
  55. context.canvas.width = defaultWidth;
  56. context.canvas.height = defaultHeight;
  57. // CREATING GAME STATES
  58. game.state.add('boot', bootState);
  59. game.state.add('lang', langState);
  60. game.state.add('loadLang', loadLangState);
  61. game.state.add('name', nameState);
  62. game.state.add('menu', menuState);
  63. game.state.add('customMenu', customMenuState);
  64. game.state.add('map', mapState);
  65. game.state.add('end', endState);
  66. game.state.add('squareOne', squareOne);
  67. game.state.add('circleOne', circleOne);
  68. game.state.add('squareTwo', squareTwo);
  69. // game.state.add('scaleOne', scaleOne);
  70. game.state.add('studentReport', studentReport); // FOR MOODLE
  71. // CALLING FIRST GAME STATE
  72. game.state.start('boot');
  73. </script>
  74. </div>
  75. </body>
  76. </html>