Editing Cave unit definition file
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 6: | Line 6: | ||
==Unit== | ==Unit== | ||
− | + | '''Line 1:''' The version of the block's data format, this is always 1. For example, <code>1 # version</code> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | '''Line 2:''' The internal name of the unit. For example, <code>room_block1_3_tsuchi # foldername</code>. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | '''Line 3:''' Consisting of two numbers, this defines how many cave grid cells this unit takes up. The first number is for the length in X, the second for the length in Z (y-up). Basically, this means "this unit is X by Z units big". For example, <code>4 4 # dX/dZ ; cell size</code>. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{Credits|Jimble, Kai}} | + | '''Line 4:''' The type of unit this is. <code>0</code> is a dead end, <code>1</code> is a room, and <code>2</code> is a corridor. |
+ | |||
+ | '''Line 5:''' The unit's flags. For example, <code>0 1 # room Flags</code>. | ||
+ | {{todo|Document the unit's flags.}} | ||
+ | |||
+ | '''Line 6:''' This indicates how many exits this unit has. For example, <code>4 # num doors</code>. | ||
+ | |||
+ | ===Exits=== | ||
+ | |||
+ | '''Line 1:''' The exit's index, starting from 0. For example, <code>0 # index</code> | ||
+ | |||
+ | '''Line 2:''' The first of three numbers - <code>dirs</code> - is the direction of the room and player. For example, in the Emergence Cave the direction is <code>2</code>, for all other rooms to connect they must also be <code>2</code>. This value is ''currently'' useless because all rooms must be the same value for them to connect to each other. The player will always face this direction (the camera will oppose), which in a single-door room (any room name with "_1" before the room type) is always towards the next room. | ||
+ | [[File:Dir3.png|200px|thumb|right|An example of <code>dirs</code> set on <code>3</code> while all other room <code>dirs</code> are set on <code>2</code>.]] | ||
+ | |||
+ | '''Line 3:''' The number of door links. For example, <code>2 # door links</code>. | ||
+ | |||
+ | '''Line 4(+):''' Ddst/door-id/tekiflag; there are as many lines for these three numbers as there are door links (specified in line 3). For example, <code>849.951904 1 1 # dist/door-id/tekiflag</code>. | ||
+ | |||
+ | {{Credits|Jimble, Kai-Kai}} | ||
[[Category:Pikmin 2]] | [[Category:Pikmin 2]] | ||
[[Category:File formats]] | [[Category:File formats]] |