Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeEclipse
languagejavascript
titleMove a droid to where I first started out on this map
linenumberstrue
// assuming we have a droid object "myDroid" and a location defined by it's x,y co-ordinates...
if (droidCanReach(droidmyDroid,x,y) {
  orderDroidLoc(myDroid,DORDER_PATROL,x,y);
}

...