Kotlin LibGDX/KTX RPG Tutorial - Part 16 (Floating Text)
This is a tutorial series about game development using Kotlin, LibGDX with LibKTX extensions.
We are developing a small 2D adventure RPG using different technologies like Box2D, GdxAI, Entity Component System or Tiled.
The full source code of the tutorial can be found on github: https://github.com/Quillraven/MysticWoods
Part 16 - Floating Text:
In this part we are going to learn how to add UI elements to our game like a floating text.
Link to Hiero: https://libgdx.com/wiki/tools/hiero
Link to LibGDX Interpolation: https://libgdx.com/wiki/math-utils/interpolation
Chapters:
00:00 - Introduction UI stage
05:50 - Update RenderSystem
07:35 - Update LifeSystem
11:45 - FloatingTextComponent
16:37 - LibGDX Interpolation
20:17 - Create floating text entity
22:46 - LabelStyle
25:20 - Bitmap font
26:15 - Hiero tool
31:50 - Intermediate result
32:20 - FloatingTextSystem
36:10 - Converting game to UI coordinates
41:44 - Result with coordinate conversion
42:10 - Making the text move
43:15 - Final result
44:03 - Minor refactoring of coordinate conversion
46:20 - Next steps