diff --git a/Design-Doc%3A-%60level%60-tool.md b/Design-Doc%3A-%60level%60-tool.md index 426c05f..3250bbe 100644 --- a/Design-Doc%3A-%60level%60-tool.md +++ b/Design-Doc%3A-%60level%60-tool.md @@ -43,22 +43,22 @@ health = { The .lvl format is output by the `level` tool. It is a binary format ideal for use on a 8-bit or 16-bit game console. All coordinates use (0,0) upper left as an origin. ### Component Definitions +``` * 2 bytes: Number of component definitions - For (number of component definitions): * 1 byte: ID for this component * 1 byte: Number of 16-bit properties associated with this component * Note: Order of fields are identical to order of fields in configuration TOML. +``` ### Component Data +``` * 2 bytes: Number of component instances - For (number of component instances): * 2 bytes: ID of the associated entity * 2 bytes: Index of the component definition (from component definitions - not the ID! but the index) - ----For (number of 16-bit properties in the component as determined from its entry in "Component Definitions"): - -------* 2 bytes: Value of the associated field (order per configuration TOML as mentioned above). + For (number of 16-bit properties in the component as determined from its entry in "Component Definitions"): + * 2 bytes: Value of the associated field (order per configuration TOML as mentioned above). +``` (TBD !!) \ No newline at end of file