BGS
These are the background elements that you see throughout your runs in Keep Driving. Such as mountains, trees, clouds, houses, rails, etc.
You may define some images by creating a bgs.kdr file.
The following properties that exist:
| Key | Type | Required | Default | Explanation |
|---|---|---|---|---|
| bg_name | String |
Yes | N/A |
The internal name of the background. |
| bg_layer | Number |
No | -1 | The layer this background appears on. |
| bg_biome | String |
Yes | N/A |
The biome this appears in. |
| bg_env | String |
Yes | N/A |
The environments that this appears in. |
| bg_sprite_tag | String |
No | "" |
The tags for this sprite backgronud to use. |
| bg_sprite_begin | String |
No | "spr_railing" |
The starting sprite for the background. |
| bg_sprite_end | String |
No | "spr_railing_end" |
The ending sprite for the backgronud. |
| bg_sprite_coast_begin | String |
No | N/A |
The starting sprite for the coast background. |
| bg_sprite_coast_end | String |
No | N/A |
The ending sprite for the coast backgronud. |
| bg_short_lived | Number |
Yes | N/A |
|
| bg_animate | Number |
No | 0 |
|
| bg_height | Number |
No | 0 |
The max height offset of the background. |
| bg_y | Number |
No | 0 |
The yoffset for the background. |
| struct | Struct |
No | N/A |
Defines a new struct element for the background. |
The struct key contains the following properties.
| Key | Type | Required | Default | Explanation |
|---|---|---|---|---|
| struct_spawn_mode | String |
No | "Random" |
|
| struct_wind | Number |
No | 0 |
|
| struct_building | Number |
No | 0 |
|
| struct_number | Number |
No | 2 |
|
| struct_chance | Number |
No | 25 |
|
| struct_x_min | Number |
No | 0 |
|
| struct_x_max | Number |
No | 1 |
|
| struct_y_min | Number |
No | 0 |
|
| struct_y_max | Number |
No | 1 |
Example
{
}