ppb / pursuedpybear

A python game engine.
https://ppb.dev/
Artistic License 2.0
258 stars 98 forks source link

Plan configuration system #76

Open pathunstrom opened 7 years ago

pathunstrom commented 7 years ago

Plan a configuration layer to reduce necessity of using kwargs everywhere.

pathunstrom commented 7 years ago

Configuration on this project is going to be fairly complex, because we have a fairly mixed audience:

New Developers

A new developer wants to think about the configuration of software as little as possible. We need to provide a series of reasonable defaults for all configurable parts of the system.

Hobbyists

People using PPB as a hobby will almost definitely want to be able to carefully tune library performance to match their project's needs. For them they need to be able to include their own configuration, either through arguments or via a config file.

End Users

Gamers will adjust a number of settings to their tastes, and will need their own config file, separate from the developer configuration.

AstraLuma commented 4 years ago

This is "constants from a data file" or a "tunable knobs" system.