O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Have a go hero – Extending the game

You can polish your game development skills by implementing new game mechanics in our jumping elephant game. For example, you can introduce a concept of fatigue. The more the character jumps, the more tired they get and the slower they begin to move and have to rest to regain speed. To make the game more difficult, at times moving obstacles can be generated. When the character bumps into any of them, they get more and more tired. When the fatigue exceeds a certain level, the character dies and the game ends. The heartbeat diagram we previously created can be used to represent the character's level of fatigue—the more tired the character gets, the faster their heart beats.

There are many ways these changes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required