Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. for each y going from -1 to MAX_Y:
  2. for each x going from -1 to MAX_X:
  3. if (x, y) is air:
  4. if (x, y + 1) is NOT air:
  5. draw a south facing wall at (x, y + 1)
  6. if (x + 1, y) is NOT air:
  7. draw a west facing wall at (x + 1, y)
  8. else:
  9. if (x, y + 1) IS air:
  10. draw a north facing wall at (x, y)
  11. if (x + 1, y) IS air:
  12. draw an east facing wall at (x, y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement