Update Design Doc: `level` tool
parent
19836e9b7e
commit
da0cded62c
|
@ -42,11 +42,18 @@ health = {
|
||||||
## .lvl Format
|
## .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.
|
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
|
### Component Definitions
|
||||||
```
|
```
|
||||||
* 2 bytes: Number of component definitions
|
* 2 bytes: Number of component definitions
|
||||||
For (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
|
* 1 byte: Number of 16-bit properties associated with this component
|
||||||
* Note: Order of fields are identical to order of fields in configuration TOML.
|
* Note: Order of fields are identical to order of fields in configuration TOML.
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue