News for hackers. Stuff that matters.
Re:Show HN: Color War by psadauskas on Thursday March 22, 2012 @06:30PM (#3742382)

    var x=0,y=0;
    
    function f() {
      if(y > 600) { y = 0; }
      if(x > 800) { x = 0; y += 10; }
    
      socket.emit('move', {x:x, y:y, id:myId});
    
      x += 10;
    
      setTimeout(f, 5);
    }

There are no comments on this comment yet.