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 ...

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.