Loading

Paste #ptfmmqc8l

  1. Walks on a path tile are stored in a 16 bit number, which contains the following information.
  2.  
  3. - bit 12..15 Normal (0) or centered (1) path tile walk.
  4. - bit 8..11  The entry edge.
  5. - bit 4..7   The exit edge.
  6. - bit 0..3   The number of 90 degrees turns.
  7.  
  8. A normal walk uses the 'offset' of the person to make it move in the right area
  9. of the tile (and the opposing direction uses the left area of the tile. A
  10. centered walk is like a normal walk, but the person is gradually moved onto the
  11. center of the path, to form a queue.
  12.  
  13. Within a tile, a person enters from the entry edge, and leaves at the exit
  14. edge. (With 0=NE, 1=SE, 2=SW, and 3=NW for all edges.) If the walk at the tile
  15. requires a change in direction, one or more 90 degrees turns are made around
  16. the center of the tile (while respecting the offset in case of normal tile
  17. walks), in counter-clockwise direction.

Comments