Tutorial: Create the Falling Blocks app
In this tutorial, we explore the Falling Blocks sample app that is included with the BlackBerry 10 Native SDK. This app demonstrates how to perform common tasks such as handling touch, navigator, and sensor events, working with app data, and rendering content to the screen. For rendering, this app uses the Glview Library, which is defined in glview.h.
When this app starts, a single block appears on the screen and falls from the relative top of the screen to the relative bottom, depending on the orientation and pitch of the BlackBerry 10 smartphone. A user taps the screen to create a block at that position. The new block begins falling immediately. The blocks always fall from one side of the screen to the opposite side, even when the user changes the orientation of the device.
You will learn to:
- Create the Falling Blocks project
- Initialize OpenGL ES using glview
- Set up a main app loop
- Handle touch, navigator, and sensor events
- Update app data and render the scene
- Clean up app resources correctly
Last modified: 2015-03-31