The modifiers field can be omitted if no modifiers are provided.
The modifiers would be stored in config/sphere_modifiers/<name>.json files, similarly to powerup generators.
Example modifier data:
config/sphere_modifiers/stone.json:
Level files. Each generated sphere has a chance chance to have a given modifier applied. One sphere can get modified multiple times.
Modifier files. The only field in the root object is replace_with. It contains a list of items - each item can have conditions. When an item is chosen, the iteration stops and the effect is applied. Currently the only effect is a color change, but the format may change in the future.
Sphere modifiers would alter newly spawned spheres. Example in level file: -> Replace this:
-> to this:
The
modifiers
field can be omitted if no modifiers are provided. The modifiers would be stored inconfig/sphere_modifiers/<name>.json
files, similarly to powerup generators. Example modifier data:config/sphere_modifiers/stone.json
:config/sphere_modifiers/double.json
:Description:
chance
chance to have a given modifier applied. One sphere can get modified multiple times.replace_with
. It contains a list of items - each item can have conditions. When an item is chosen, the iteration stops and the effect is applied. Currently the only effect is a color change, but the format may change in the future.