murl-digital / aurora

The prettiest lights north of the Equator
GNU Lesser General Public License v2.1
3 stars 1 forks source link

Timeshift ramp up/down speed #29

Open Eynorey opened 4 years ago

Eynorey commented 4 years ago

The idea is to add a way to create timeshift effects which can ramp up and down in speed - something like "go from amount 20 to amount 1000 within 200 ticks in a linear fashion"

We could potentially keep the existing request model with a simple amount field (just make it optional) and add an optional ramp (or some better name) object.

said object could look something like this:

{
    "startAmount": number
    "endAmount": number
    "ticks": number
    "method": string
}

where method could be:

So for the example stated in the beginning, you would add (endAmount - startAmount) / ticks to the ingame time every tick.