Skip to content

Instantly share code, notes, and snippets.

@McFunkypants
Created January 16, 2013 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McFunkypants/4544699 to your computer and use it in GitHub Desktop.
Save McFunkypants/4544699 to your computer and use it in GitHub Desktop.
// returns boolean value (world cell is available and open)
function canWalkHere(x, y)
{
return ((world[x] != null) &&
(world[x][y] != null) &&
(world[x][y] <= maxWalkableTileNum));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment