File: example/index-intelligent.html

Recommend this page to a friend!
  Classes of Leonardo Mauro Pereira Moraes  >  TapAI  >  example/index-intelligent.html  >  Download  
File: example/index-intelligent.html
Role: Example script
Content type: text/plain
Description: Example
Class: TapAI
Study user interactions with a tap on screen game
Author: By
Last change: Update readme with more infos and link to online example. Also add footer on examples.
Date: 1 year ago
Size: 1,588 bytes


Class file image Download
<meta charset="utf-8">

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="../assets/css/bootstrap.min.css" />
<link rel="stylesheet" href="../assets/css/style.css" />

<!-- Latest compiled and minified JavaScript -->
<script src="../assets/js/jquery-1.12.3.min.js"></script>
<script src="../assets/js/bootstrap.min.js"></script>

<!-- Math functions -->
<script src="../assets/js/math/random.js"></script>
<script src="../assets/js/math/round.js"></script>

<!-- TapAI Game -->
<script src="../dist/js/TapAI/layout.js"></script>
<!-- <script src="../dist/js/TapAI/logic.js"></script> -->
<script src="../dist/js/TapAI/AIlogic.js"></script>
<script src="../dist/js/TapAI/game.js"></script>

<!-- To Save CSV -->
<script src="../assets/js/FileSaver.min.js"></script>
<script src="../dist/js/TapAI/toFile.js"></script>

<div class="container">

<div class="row">
<div class="col-sm-offset-3 col-sm-6">
<div class="well">
	<h4>Example: Intelligent Game</h4>
	<p>In this game the difficulty is adjusted by the reaction performance.</p>

	<svg id="tap-game"></svg>

	<p class="footer">Projected by <a href="http://leonardomauro.com/" target="_blank" data-toggle="tooltip" title="My Website">Leonardo Mauro</a> - <a href="https://github.com/leomaurodesenv/TapAI" target="_blank" data-toggle="tooltip" title="GitHub repository">GitHub</a></p>

<script type="text/javascript">

var tapelement = document.getElementById('tap-game');
var game = new TapAI(tapelement);