-
Notifications
You must be signed in to change notification settings - Fork 40
Direction
Scott Zimmerman edited this page Dec 12, 2025
·
4 revisions
Just a short reference to how "directions" map out in this game. For most everything, it follows the table below.
| Integer | Directions |
|---|---|
| 0 | Left, West |
| 1 | Up, North |
| 2 | Right, East |
| 3 | Down, South |
So when something is moving or facing in direction "2" for example, it is moving or facing right.
The exception to the rule is "ObjMoveStone.cs". Rather than an integer that references a specific direction, it uses a binary bitmask to set which directions are allowed. Allowed values are 0-15, and uses the base 2 (binary) number system. Below is a table that shows the values, it's binary equivalent (the bitmask), and allowed directions.
| Integer | Down | Right | UpΒ Β Β Β | LeftΒ Β | DirectionsΒ Β Β Β |
|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 1 | Left |
| 2 | 0 | 0 | 1 | 0 | Up |
| 3 | 0 | 0 | 1 | 1 | Left, Up |
| 4 | 0 | 1 | 0 | 0 | Right |
| 5 | 0 | 1 | 0 | 1 | Left, Right |
| 6 | 0 | 1 | 1 | 0 | Up, Right |
| 7 | 0 | 1 | 1 | 1 | Left, Up, Right |
| 8 | 1 | 0 | 0 | 0 | Down |
| 9 | 1 | 0 | 0 | 1 | Left, Down |
| 10 | 1 | 0 | 1 | 0 | Up, Down |
| 11 | 1 | 0 | 1 | 1 | Left, Up, Down |
| 12 | 1 | 1 | 0 | 0 | Right, Down |
| 13 | 1 | 1 | 0 | 1 | Left, Right, Down |
| 14 | 1 | 1 | 1 | 0 | Up, Right, Down |
| 15 | 1 | 1 | 1 | 1 | Left, Up, Right, Down |
- π‘ Home
- π€ Building & Contributing
- π Additional Info
- π Main Update Loop
- π§ Direction
- π₯οΈ Dialog Path Loader
- πΊοΈ Dungeon Minimap Files
- πΌοΈ Sprite Atlas Files
- π₯ Camera Field Objects
- π·οΈ Placeholder Tags
- πΌ Music Indexes
- π£ Launcher Mod Maker
- π§© Texture Replacement
- πΌοΈ Custom Menu Border
- π΅ Music Replacement
- πΆ Sound Effect Replacement
- πΊοΈ MapOverlay Custom Info
- π Dialog Replacement
- π LAHDMods