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 |
The tags for this sprite backgronud to use. | ||
| bg_sprite_begin | String |
The starting sprite for the background. | ||
| bg_sprite_end | String |
The ending sprite for the backgronud. | ||
| bg_sprite_coast_begin | String |
The starting sprite for the coast background. | ||
| bg_sprite_coast_end | String |
The ending sprite for the coast backgronud. | ||
| bg_short_lived | Number |
|||
| bg_animate | Number |
|||
| bg_iis | Number |
|||
| bg_iis | Number |
|||
| bg_height | Number |
|||
| bg_y | Number |
|||
| struct | Struct |
Defines a new struct for the background. |
The struct key contains the following properties.
| Key | Type | Required | Default | Explanation |
|---|---|---|---|---|
| struct_spawn_mode | String |
|||
| struct_wind | Number |
|||
| struct_building | Number |
|||
| struct_number | Number |
|||
| struct_chance | Number |
|||
| struct_x_min | Number |
|||
| struct_x_max | Number |
|||
| struct_y_min | Number |
|||
| struct_y_max | Number |
Example
{
}