ooxi / violetland

An open source cross-platform game similar to Crimsonland
https://violetland.github.io/
Other
66 stars 15 forks source link

Change `LifeForm::MaxSpeed` #120

Closed ooxi closed 7 years ago

ooxi commented 8 years ago

Old formula

max-speed_old(agility) = agility / 5

New formula

max-speed_new(agility, weight) = 1.5 * agility / (agility * weight + 7.5)

maxspeed

max-speed_old is blue, max-speed_new is red. x-axis is agility, y-axis is MaxSpeed. weight is fixed as one.

A LifeForm's initial agility is one and increases slowly.

ooxi commented 8 years ago

@bla-rs could you please describe the gameplay changes this commit achieves?

bla-rs commented 8 years ago

With the new speed, the gameplay only changes slightly because real high speeds are hard to reach / only later in the game. None the less, i think this commit is very imporant because it allows ridiculous high agilities without the same effect on speed. There should be a minimum possible speed, so aglity = 0 doenst mean speed = 0.

ooxi commented 8 years ago

Thanks for the explanation, I will merge this commit :+1:

Since agility cannot decrease (as far as I know) and has an initial value of one I don't think a situation could arise where MaxSpeed would be zero :)

ooxi commented 7 years ago

I have rebased and merged commit b8b532b099ebd6aed6d5b7b65136df814a9ee5c1 as d682711a0bad51f48805d3e84b0f8089b7ffd777 and verified the resulting binaries in build #308.

Thanks for your contribution and sorry it took so long to integrate!