krzema12 / hypergravity

Gravity simulation in Hyper terminal
MIT License
23 stars 5 forks source link

Static elements #15

Open krzema12 opened 6 years ago

krzema12 commented 6 years ago

There should be an opt-in way to say that e. g. all characters ['#', '|'] are static, i. e. should not be animated and no gravity should be applied to it, but they should be taken into consideration when animating the rest of the objects. Thanks to this, one could create complex scenes in some text editor, e. g. a hourglass where the glass parts are made of the static characters, and the rest of the characters is sand.

The static elements should be defined in the config using either a regex or just an array of characters (or both, alternatively).