Skip to content

Instantly share code, notes, and snippets.

@AlexNisnevich
Created January 6, 2014 08:24
Show Gist options
  • Save AlexNisnevich/8279813 to your computer and use it in GitHub Desktop.
Save AlexNisnevich/8279813 to your computer and use it in GitHub Desktop.
if (map.getPlayer().getX()>10) me.move('right');
if (map.getPlayer().getX()<10) me.move('left');
if (map.getPlayer().getY()>10) me.move('down');
if (map.getPlayer().getY()<10) me.move('up');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment