Ping Pong Madness – Level List (Part 07)

This part will get the Level list by Mode from the Database and then will display them on the corresponding tabs. GameSelect.java We will edit the existing GameSelect.java file and we will add a CustomAdapter called LevelAdapter, which will have the level name, score,...

Ping Pong Madness – Database (Part 06)

The Database will store all the Levels and the records information. There are public methods to fetch levels by type, create records, fetch records and fetch stars. Table: levels _id – unique identifier level_type – level type, tutorial or normal...

Ping Pong Madness – Mode (Part 05)

Modes: TUTORIAL This mode shows the Shot types, their speed and their movement. LEVEL This mode has a predefined set of Sequences on each Level. Each hit worths one point and increases the multiplier. If the player misses a Shot, the multiplier goes back to 1x. Stars:...

Ping Pong Madness – Level (Part 04)

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...

Ping Pong Madness – Sequence (Part 03)

Sequences are defined on XML files. Each Sequence has a name and a set of Shots. Each Shot has a type, a start and an interval. Attributes: name: just for information purposes type: which Shot will be used start: where the Shot will start vertically (percentage of the...

Ping Pong Madness – Shot (Part 02)

Shots are defined on XML files. Each Shot have a name, a return speed and a movement. The movement is a set of moves with a start, a horizontal speed and a vertical speed. Attributes: name: just for information purposes returnSpeed: the speed after the shot is hit...

Ping Pong Madness – Splash Screen (Part 01)

First of all, setup your development workspace and create a new Android Project. Our first Activity is a Splash Screen (GameSplash) that appears while the game is loading and after a few seconds it will transition to the next screen (GameSelect).    GameSplash.java do...

How To Setup Your Development Workspace

You need to download and install the Android SDK, download Eclipse, download and install the Eclipse ADT. Links: Download Android SDK: http://developer.android.com/sdk/index.html Installling Android SDK: http://developer.android.com/sdk/installing.html Download...

Ping Pong Madness Tutorial – Creating Android Games

I will teach how to create a simple action game and the game will look like the above video. I will not give much details about the android/java basics, so feel free to use the comments section to ask questions. This was my first game, so there is probably a lot of...

How To Calculate The MD5 Hash

As you know, you shouldn’t store passwords and other sensitive data in plain text. A good approach is to store the data’s MD5 hash. public static String calcMD5(String s) { try { MessageDigest digest = java.security.MessageDigest.getInstance("MD5");...