Quick game programming

Here, we will go through the process of creating a platform game using Qt Quick. It will be a game similar to Benjamin the Elephant from Chapter 6, Qt Core Essentials. The player will control a character that will be walking through the landscape and collecting coins. The coins will be randomly appearing in the world. The character can access highly placed coins by jumping.

Throughout this chapter as well as the previous one, we prepared a number of pieces that we will be reusing for this game. The layered scene that was arranged when you learned about animations will serve as our game scene. The animated sun will represent the passing of time.

We will guide you through implementing the main features of the game. At ...

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.