Kotlin LibGDX/KTX RPG Tutorial - Part 24 (Pause & Resume)
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 24 - Pause & Resume:
In this part we are going to learn how to pause our entire game, including audio, and how to resume it.
Chapters:
00:00 - demo of pause/resume
02:38 - naive approach (do nothing)
06:10 - disable systems
10:03 - fadeout effect
13:58 - implement PauseView
17:28 - creating a Pixmap
21:36 - test PauseView
22:26 - update PlayerInputProcessor (fire new events)
25:00 - refactor Screen/Game
30:10 - react to pause/resume events
34:38 - pause animations
36:34 - pause audio
41:08 - final test
41:46 - final words