Velocity increase at start of the program not constant

Heyy guys,

I am trying to create a game with the help of raylib for my school. At the moment I have just implemented gravity. My problem is that the increase in velocity per frame is not constant. [See picture 1]

Why is that and what are your ways to solve it. Btw pls dont flame for my code I have`nt polished it yet.

Project source code:
https://github.com/Lucijan-Hertel/Dark-Impact
image.png
GitHub
Contribute to Lucijan-Hertel/Dark-Impact development by creating an account on GitHub.
Was this page helpful?