Have a go hero – improving the game

Try to make your own modifications to the game. For example, you can notify the player about an invalid move by flashing the background color or the color of the foundation object. You can even add a 3D text to the scene using the ExtrudedTextMesh component. Try to play with different easing modes to make the animations look better.

The properties and functions of the Scene object are visible to the outside world, but they really are implementation details. You can fix that by putting them into an internal QtObject, as we described in Chapter 12, Customization in Qt Quick.

Qt 3D is very flexible when it comes to rendering. While it's straightforward to use with the simple ForwardRenderer, you can create ...

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.