Voxel (DEF): Difference between revisions
Jump to navigation
Jump to search
Created page with "'''voxel''' <filename> { ... } Defines a voxel to replace sprites. filename is the name of the .KVX file containing the voxel. The brace-enclosed block may contain these inst..." |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''voxel''' <filename> { ... } | <span {{code}}>'''voxel''' <filename> { [...] }</span> | ||
Defines a voxel to replace sprites. filename is the name of the .KVX file containing the voxel. The brace-enclosed block may contain these instructions: | Defines a voxel to replace sprites. filename is the name of the .KVX file containing the voxel. The brace-enclosed block may contain these instructions: | ||
Line 5: | Line 5: | ||
== Tokens == | == Tokens == | ||
'''tile''' <tilenum> | <span {{code}}>'''tile''' <tilenum></span><br /> | ||
'''tile0''' <tilenum> | <span {{code}}>'''tile0''' <start tilenum></span><br /> | ||
'''tile1''' <tilenum> | <span {{code}}>'''tile1''' <end tilenum></span> | ||
Use these instructions to map tiles that should be rendered as a voxels. Use '''tile''' to map a single tile to be rendered as voxels and '''tile0''', '''tile1''' together define a range of tiles to be rendered as voxels. The '''tile0''' instruction should appear before the '''tile1''' instruction to define a correct range. | Use these instructions to map tiles that should be rendered as a voxels. Use '''tile''' to map a single tile to be rendered as voxels and '''tile0''', '''tile1''' together define a range of tiles to be rendered as voxels. The '''tile0''' instruction should appear before the '''tile1''' instruction to define a correct range. | ||
'''scale''' <value> | <span {{code}}>'''scale''' <value></span> | ||
<value> is a (possibly fractional) value specifying a scaling factor for the voxelmodel when it is rendered, eg. 1.5 for one-and-a-half times as big. | <value> is a (possibly fractional) value specifying a scaling factor for the voxelmodel when it is rendered, eg. 1.5 for one-and-a-half times as big. | ||
[[Category:DEF commands]] | [[Category:DEF commands]] |
Latest revision as of 04:45, 23 February 2020
voxel <filename> { [...] }
Defines a voxel to replace sprites. filename is the name of the .KVX file containing the voxel. The brace-enclosed block may contain these instructions:
Tokens
tile <tilenum>
tile0 <start tilenum>
tile1 <end tilenum>
Use these instructions to map tiles that should be rendered as a voxels. Use tile to map a single tile to be rendered as voxels and tile0, tile1 together define a range of tiles to be rendered as voxels. The tile0 instruction should appear before the tile1 instruction to define a correct range.
scale <value>
<value> is a (possibly fractional) value specifying a scaling factor for the voxelmodel when it is rendered, eg. 1.5 for one-and-a-half times as big.