Skip to content

Commit

Permalink
Merge pull request #5 from forgman6/patch-1
Browse files Browse the repository at this point in the history
Update dir.md
  • Loading branch information
F0lak authored Oct 26, 2024
2 parents 96bec56 + 263c1c6 commit 86ae647
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions ref/atom/var/dir.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,21 @@
**Possible values:**
+ NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST

| Dir | Value | Binary |
|--------------|:-----:|-----------:|
| NORTH | 1 | 0001 |
| SOUTH | 2 | 0010 |
| EAST | 4 | 0100 |
| WEST | 4 | 1000 |
| NORTHEAST | 5 | 0101 |
| NORTHWEST | 9 | 1001 |
| SOUTHEAST | 6 | 0110 |
| SOUTHWEST | 10 | 1010 |

This is the direction that the object is facing. This has
little effect unless the object\'s icon is directional. In the case of a
directional icon, this selects the corresponding orientation from the
icon file.
icon file. you should use the value names instead of the values, as `dir = NORTHEAST` is more comprehendible then `dir = 5`

An icon file with only four (cardinal) directions
makes the choice of orientation ambiguous when the true direction is a
Expand All @@ -23,4 +33,4 @@ one would naturally expect.
> + [Move proc (movable atom)](/ref/atom/movable/proc/Move.md)
> + [icon var (atom)](/ref/atom/var/icon.md)
> + [turn proc](/ref/proc/turn.md)
> + [stddef.dm file](/ref/appendix/stddef%2edm.md)
> + [stddef.dm file](/ref/appendix/stddef%2edm.md)

0 comments on commit 86ae647

Please sign in to comment.