<!DOCTYPE html>
<html>
    
<head>
  <meta charset="utf-8" />
  <title>Flappy Bird Clone</title>

  <script type="text/javascript" src="phaser.min.js"></script>
  <script type="text/javascript" src="socket.io/socket.io.js"></script>
  <script type="text/javascript" src="main.js"></script>
</head>
<body>

  <p>Press the spacebar to jump</p>

  <div id="gameDiv"> </div>

  <script>
		var socket = io();
		socket.on('count',function(msg){
		 console.log(msg.value);
		});

		var gameDivObj = document.getElementById('gameDiv');
		gameDivObj.onmousemove = function(e)
		{
		  var dx = e.movementX;
		  var dy = e.movementY;
		  var d = Math.round(Math.sqrt(Math.pow(dx, 2)+Math.pow(dy,2)));
		  socket.emit('simulate', {value:d/10});
		}
	  
		socket.on('flow', function(msg){
			if (world)
			{
				world.flap(msg.value);
			}
		});
  </script>
</body>

</html>
<!DOCTYPE html>
<html>
    
<head>
  <meta charset="utf-8" />
  <title>Flappy Bird Clone</title>

  <script type="text/javascript" src="phaser.min.js"></script>
  <script type="text/javascript" src="socket.io/socket.io.js"></script>
  <script type="text/javascript" src="main.js"></script>
</head>
<body>
  <div id="gameDiv"> </div>

  <script>
		var socket = io();
		socket.on('count',function(msg){
		 console.log(msg.value);
		});

		var gameDivObj = document.getElementById('gameDiv');
		gameDivObj.onmousemove = function(e)
		{
		  var dx = e.movementX;
		  var dy = e.movementY;
		  var d = Math.round(Math.sqrt(Math.pow(dx, 2)+Math.pow(dy,2)));
		  socket.emit('simulate', {value:d/10});
		}
	  
		socket.on('flow', function(msg){
			if (world)
			{
				world.flap(msg.value);
			}
		});
  </script>
</body>

</html>
Remove "Press Spacebar to jump"
Remove "Press Spacebar to jump"
