Skip to content

Instantly share code, notes, and snippets.

@McFunkypants
Created January 16, 2013 04:45

Revisions

  1. McFunkypants created this gist Jan 16, 2013.
    7 changes: 7 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    // 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));
    };