Hi, I’m starting now with game development and I would like some help.
Right now I’m doing some some preliminar testing for a 2D scroller game and I have some questions.
Game loop - What function/event should I use to handle the updates?
Tick seems to do the job pretty well but how do I handle different frame rates? (if it’s a problem)
How about a retriggerable delay?
Physic - Even after setting linear/angular damping to 0 my “character” (actually a cube, it will be a sprite later) keeps falling aside.
Do I have to hardcode the axis to 0 at every update or there is a better way?
If not should I consider to write my own physic since it’s really simple?
General tips - I’m starting to understand how to “do things” but I don’t know how to do them well engine-wise (which function is better do do what, which approach should I use…).
I also know nothing about patterns for game development. If you know some kind of tutorial about that it would be great!
Thank for reading, have a nice day