Last active
August 29, 2015 14:16
-
-
Save rubentd/57656b68504ad2b4c074 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setInterval(function(){ | |
| g.mainLoop(); | |
| }, INTERVAL); | |
| mainLoop: function(){ | |
| if(this.localTank != undefined){ | |
| this.sendData(); //send data to server about local tank | |
| } | |
| if(this.localTank != undefined){ | |
| //move local tank | |
| this.localTank.move(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment