September 2016
Intermediate to advanced
588 pages
12h 22m
English
In this chapter, we develop a classic Tetris game. We look further into the Window class, including text writing and drawing figures that are more complex. We look also into timing, random numbers, and graphical updates such as falling figures and flash effects. An illustration of it is shown next:

The MainWindow function is similar to the methods in Chapter 2, Hello, Small World!. It sets the application name and returns a pointer to the main window, which, in this case, is an instance of the TetrisWindow class. As stated in Chapter 2, Hello, Small World! the application name is used ...
Read now
Unlock full access