Can't seem to figure out how the snek speed up in T17 HW
Posted: October 8th, 2017, 8:11 am
So chili used this code to make the snek gradually speed up.
But this code isn't making any sense to me and I don't even know what is making it difficult.
I think what is making me annoyed is I can't seem to figure out how long will the snek need to reach its maximum speed and how much speed will snek increase every frame.
P.S. I know its only math but I can fiqured this shit out.
P.S.S Thanks chili For Making these awesome tutorials. They have helped me greatly toward taking tangible steps for creating a open world RPG game.
Code: Select all
snekMovePeriod = std::max( snekMovePeriod - dt * snekSpeedupFactor,snekMovePeriodMin )
I think what is making me annoyed is I can't seem to figure out how long will the snek need to reach its maximum speed and how much speed will snek increase every frame.
P.S. I know its only math but I can fiqured this shit out.
P.S.S Thanks chili For Making these awesome tutorials. They have helped me greatly toward taking tangible steps for creating a open world RPG game.