(#13) Tutorial LibGDX Kotlin usando LibKTX – Corrija seu timestep

Bem-vindo ao meu tutorial LibGDX Kotlin, onde vamos desenvolver um pequeno jogo de sobrevivência autoscroller usando o Ashley Entity Component System. Combinado com LibKTX, extensões Kotlin para LibGDX, estamos construindo uma base moderna para qualquer tipo de jogo 2D. LibGDX: https://libgdx.badlogicgames.com LibKTX: https://github.com/libktx/ktx Ashley: https://github.com/libgdx/ashley Kotlin: https://kotlinlang.org Intellij IDEA: https ://www.jetbrains.com/de-de/idea Fonte no Github: https://github.com/Quillraven/Dark-Matter Google Play: https://play.google.com/store/apps/details? id=com.github.quillraven.darkmatter Playlist: https://www.youtube.com/watch?v=7aa6CY7_j9U&list=PLTKHCDn5RKK-8lZmjZoG4rFywN_SLbZR8 Padrões de programação de jogos: https://gameprogrammingpatterns.com/contents.html Libgdx Cross-platform Game Livro de receitas de desenvolvimento: https://www.packtpub.com/game-development/libgdx-cross-platform-game-development-cookbook Gdx-Liftoff: https://github.com/tommyettinger/gdx-liftoff
source
In this part we are going to learn how to fix our game logic to have a consistent behavior amongst different devices. Also, in case of frame drops we still want to provide a smooth rendering, if possible.
A great article about this topic and the "spiral of death" is the following: https://gafferongames.com/post/fix_your_timestep/
One more question:
Shouldn't we use interpolatedPosition instead o position in DamageSystem, DebugSystem and PlayerInputSystem??
Hi! Quite interesting.
I think there is a small mistake in 12:50 when interpolating the y coordinate. In fact, there is no interpolation if both values are the same.
I guess it should be written in a similar way to x coordinate ¿?
Regards.
GREAT CONTENT, keeeep going. also, what's the font's name?