In the previous two chapters, we introduced you to the basics of Qt Quick and QML. By now, you should be fluent enough with the syntax and understand the basic concepts of how Qt Quick works. In this chapter, we will show you how to make your games stand out from the crowd by introducing different kinds of animations that make your applications feel more like the real world. You will also learn to treat Qt Quick objects as separate entities programmable using state machines. A significant part of this chapter will introduce how to implement a number of important gaming concepts using Qt Quick. All this will be shown while we build a simple 2D action game using the presented concepts.
The main topics covered in this chapter are as follows:
- Animation framework in Qt Quick
- States and transitions in depth
- Implementing games in Qt Quick
- Sprite animations...