Define (DEF): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
'''define''' <name> < | <span {{code}}>'''define''' <name> <value></span><br /> | ||
'''#define''' <name> < | <span {{code}}>'''#define''' <name> <value></span> | ||
Declares <name> to represent the numeric value < | Declares <name> to represent the numeric value <value>. <value> can be a label, in which case the value of the label given is used. | ||
NOTE: You may find it convenient to include DEFS.CON or NAMES.H to predefine many of the tile (and sound) names in the art file. | NOTE: You may find it convenient to include DEFS.CON or NAMES.H to predefine many of the tile (and sound) names in the art file. | ||
[[Category:DEF commands]] | [[Category:DEF commands]] |
Revision as of 04:14, 23 February 2020
define <name> <value>
#define <name> <value>
Declares <name> to represent the numeric value <value>. <value> can be a label, in which case the value of the label given is used.
NOTE: You may find it convenient to include DEFS.CON or NAMES.H to predefine many of the tile (and sound) names in the art file.