sketch.js
// extracting positions from data and applying it here (val means value extracted from value)
extracting positions from data and applying it here (val means value extracted from value)
extracting positions from data and applying it here ( val means value extracted from value )
function readPosition(data){
  position = data.val();
  console.log(position.x);
  hypnoticBall.x = position.x;
  hypnoticBall.y = position.y;
}
function readPosition ( data ) { position = data . val ( ) ; console . log ( position . x ) ; hypnoticBall . x = position . x ; hypnoticBall . y = position . y ; }
extracting positions from data and applying it here (val means value extracted from value)
extracting positions from data and applying it here ( val means value extracted from value )