Building Games For Android

In this chapter we will learn about Building RingLibSDL Games for Mobile.

So we can create packages (*.apk) for the applications that are developed using Ring Game Engine for 2D Games.

Download Requirements and Update the Android SDK

Project Folder

Open the project folder : ring/android/ringlibsdl/project

RingLibSDL for Android

You can add the source code (*.ring) and Images/Sound Files to the assets folder.

RingLibSDL for Android

You will find the Flappy Bird 3000 Game ready for building.

The execution starts from the start.ring file

load "game2.ring"

Building the project

Move to the ring/android/ringlibsdl/project folder

We can build using the next command (We need to do this for one time only).

ndk-build

Then we can create the package (*.apk) using the next command.

ant debug