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

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

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