Requirements
The customer requested a mobile application for Android tablets that will entertain children with gaming experiences. The app should cover tablets holding 7 and 10 inches displays. It was decided to assign one developer for the project.
Challenge
The first challenge was to implement postcard picture creation, which consists of overlapping mask pictures like pirate or clown images with a transparent face, and a child's photo taken from a gallery or photo shot. This photo underlays the mask, allowing the user to rotate/zoome underneath. The other challenge was to program a magnetic effect for the puzzle game and to fulfill the correct eraser in the painting game, which handles the changes of custom background and user-painted canvas.
Solution
The first problem was resolved by a combined approach using bitmap drawing cache, extra bitmap canvas for underneath layer, and standard Matrix class for picture transformations. All transformations are performed in a new thread that is different from the main UI thread. The magnetic effect was created by storing the destination point in the tag of puzzle peace view, so each puzzle knows its destination. The paint game eraser is created by a specific paint mode called Porter DuffXfer mode with the CLEAR mode that was applied only to user-painted canvas.
Results
The outcome of the development is a tablet application (supports Android 4.0 and higher). The main target is to make fun of user gaming interaction, which requires some creativeness from users.
The app has the following functionality:
- Creating a postcard combining different “fun” mask, as a pirate, a clown, or a princess with the real picture including accurate adjustment;
- Listen to app build-in music;
- Browsing information related to Stiftung Theodora;
- Puzzle game of build-in pictures or any external pic or photo shot with time scores;
- Memory game of 24 cards where time and number of cards picked is counted for scores;
- Painting game where you can set custom background from preset colors or from own photos and pictures;
- Paintings and postcards can be shared online.