Levels are defined on XML files. Each Level has a name and a set of Sequences and each Sequence has a type.

Attributes:

    • name: just for information purposes
    • type: which Sequence will be used

Example 1:

This is a simple level that will have Sequence 1 and then Sequence 2.

Example 2:

This is a level that will have Sequence 1, then Sequence 2, then two Sequences 1.

Level.java

All the Levels are defined on a single class, just like the Sequences and Shots.

Levels have a set of Sequences. This class is responsible to load Level resources and to handle all Level interactions.

level_001.xml

SVN Project:

PingPong Madness Tutorial – Part 04 SVN

APK:

PingPong Madness Tutorial – Part 04.apk

Tutorial: