Update Design Doc: `level` tool

master
Ashley N. 2023-09-05 00:29:15 +00:00
parent 19836e9b7e
commit da0cded62c
1 changed files with 8 additions and 1 deletions

@ -42,11 +42,18 @@ health = {
## .lvl Format
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.
### Entity Data
```
2 byte: Number of entities
For (number of entities):
* 2 bytes: Entity ID (-1 if not present)
```
### Component Definitions
```
* 2 bytes: Number of component definitions
For (number of component definitions):
* 1 byte: ID for this component
* 2 bytes: 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.
```