2024-07-16 20:29:20 +02:00
|
|
|
# River Format
|
|
|
|
|
2023-09-18 13:06:56 +02:00
|
|
|
## Format
|
|
|
|
|
2024-12-04 18:50:01 +02:00
|
|
|
```json
|
2023-09-18 13:06:56 +02:00
|
|
|
"newRiver" :
|
|
|
|
{
|
2024-06-24 03:23:26 +02:00
|
|
|
// Two-letters unique identifier for this river. Used in map format
|
2023-09-18 13:06:56 +02:00
|
|
|
"shortIdentifier" : "mr",
|
|
|
|
|
|
|
|
// Human-readable name of the river
|
|
|
|
"text" : "My Road",
|
|
|
|
|
|
|
|
// Name of file with river graphics
|
|
|
|
"tilesFilename" : "myRiver.def"
|
|
|
|
|
|
|
|
// Name of file with river delta graphics
|
|
|
|
// TODO: describe how exactly to use this tricky field
|
|
|
|
"delta" : "",
|
|
|
|
|
|
|
|
// If defined, river will be animated using palette color cycling effect
|
|
|
|
// Game will cycle "length" colors starting from "start" (zero-based index) on each animation update every 180ms
|
|
|
|
// Color numbering uses palette color indexes, as seen in image editor
|
|
|
|
// Note that some tools for working with .def files may reorder palette.
|
|
|
|
// To avoid this, it is possible to use json with indexed png images instead of def files
|
|
|
|
"paletteAnimation" : [
|
|
|
|
{ "start" : 10, "length" : 5 },
|
|
|
|
...
|
|
|
|
]
|
|
|
|
}
|
2024-11-30 22:20:15 +02:00
|
|
|
```
|