index.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <title> Fractions </title>
  6. <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
  7. <script type="text/javascript" src="js/phaser.min.js"></script>
  8. <script type="text/javascript" src="js/boot.js"></script>
  9. <script type="text/javascript" src="js/menu.js"></script>
  10. <script type="text/javascript" src="js/circleOne.js"></script>
  11. <script type="text/javascript" src="js/squareOne.js"></script>
  12. <script type="text/javascript" src="js/squareTwo.js"></script>
  13. </head>
  14. <body>
  15. <div class="container">
  16. <div class="clearfix"></div>
  17. <div class="panel panel-primary">
  18. <div class="panel-heading">FRACTIONS GAME</div>
  19. <div class="panel-body">
  20. <center>
  21. <div id="fractions-game" style="padding: 0 auto 0 auto;"></div>
  22. </center>
  23. </div>
  24. </div>
  25. <div class="panel panel-info">
  26. <div class="panel-heading">COOPERATION TEAM</div>
  27. <div class="panel-body">
  28. <center>
  29. <ul>
  30. <li><strong>BRAZIL:</strong> Le&ocirc;nidas de Oliveira Brand&atilde;o (IME-USP)</li>
  31. <li><strong>PERU:</strong> Manuel Ibarra and Cristhian Serrano (EAPIIS-UNAMBA)</li>
  32. <li><strong>FRANCE:</strong> Jean-Marc (MOCAH-UPMC)</li>
  33. </ul>
  34. </center>
  35. </div>
  36. </div>
  37. <div class="panel panel-default">
  38. <div class="panel-heading">BASED ON</div>
  39. <div class="panel-body">
  40. <center>
  41. <ul>
  42. <li><strong>iLM </strong>(interactive Learning Modules) </li>
  43. <li><strong>Six facets of Serious Game Design</strong>:<br>
  44. Pedagogical Objectives; Domain Simulation; Interactions with the Simulation; Problems and Progression; Decorum and Conditions of Use.
  45. </li>
  46. </ul>
  47. </center>
  48. </div>
  49. </div>
  50. <div class="panel panel-danger">
  51. <div class="panel-heading">TECHNOLOGY</div>
  52. <div class="panel-body">
  53. <center>
  54. <ul>
  55. <li> We used <strong>HTML5</strong>, <strong>CSS</strong> and the <strong>Javascript</strong> Library <a href="http://phaser.io/" target="_blank"><strong>Phaser.io</strong></a> </li>
  56. </ul>
  57. </center>
  58. </div>
  59. </div>
  60. </div>
  61. </body>
  62. <script type="text/javascript">
  63. // Initialize the game
  64. var game = new Phaser.Game(900, 600, Phaser.CANVAS, 'fractions-game');
  65. hip = "143.107.45.11"; //Host ip
  66. name = ""; //player name
  67. lang = ""; //language
  68. var timer, totalTime;
  69. // Game One
  70. onePosition = 0; //Map position
  71. oneMove = false; //Move to next position
  72. oneDifficulty = 0; //From one to five
  73. oneOperator= ""; //Plus; Minus; Mixed
  74. oneLabel= false; //Show block label
  75. oneShape = ""; //Circle; square
  76. oneType = ""; // A - Place distance; B - Select blocks
  77. oneMenu = true;
  78. // Game Two
  79. twoPosition = 0; //Map position
  80. twoMove = false; //Move to next position
  81. twoDifficulty = 0; //From one to five
  82. twoOperator= ""; //Plus; Minus; Mixed
  83. twoLabel= false; //Show block label
  84. twoShape = ""; //Circle; square
  85. twoType = ""; // A - Normal position; B - Random position
  86. twoMenu= true;
  87. //adding game states (scenes)
  88. game.state.add('boot', bootState);
  89. game.state.add('load', loadState);
  90. game.state.add('name', nameState);
  91. game.state.add('menu', menuState);
  92. game.state.add('menuCOne', menuCircleOne);
  93. game.state.add('mapCOne', mapCircleOne);
  94. game.state.add('gameCOne', gameCircleOne);
  95. game.state.add('endCOne', endCircleOne);
  96. game.state.add('menuSOne', menuSquareOne);
  97. game.state.add('mapSOne', mapSquareOne);
  98. game.state.add('gameSOne', gameSquareOne);
  99. game.state.add('endSOne', endSquareOne);
  100. game.state.add('menuSTwo', menuSquareTwo);
  101. game.state.add('mapSTwo', mapSquareTwo);
  102. game.state.add('gameSTwo', gameSquareTwo);
  103. game.state.add('endSTwo', endSquareTwo);
  104. //starting to boot game
  105. game.state.start('boot');
  106. </script>
  107. </html>