Free Android Games, that I like to play

Today I like to show you a list of games, that I like to play on my Android:

Jewels
Simple Puzzle-Game but really addictive.
https://market.android.com/details?id=org.mhgames.jewels

Medieval Castle Defense
The best Tower-Defense-Game, that I have played on Andorid.
https://market.android.com/details?id=com.nova.root

Meganoid FREE
Retro Jump & Run fun.
https://market.android.com/details?id=com.meganoid.engine

Move it! Free
Difficult puzzle game, where you try to move block into target areas.
https://market.android.com/details?id=uk.co.aifactory.moveitfree

Plumber
Turn the pipes, so that the water can flow.
https://market.android.com/details?id=com.monstergame.plumber

Defender
Defend your castle against hordes of enemies.
https://market.android.com/details?id=com.droidhen.defender

Block Puzzle / Baustein Rätsel
Puzzle fun – try to arrange Tetris-like blocks on a game board so that everything fits well.
https://market.android.com/details?id=biz.mtoy.phitdroid.sixth

If you like to recommend further games, post them into the comments.

Use of Wakelok and Stand-By in Android Games

When to suppress the Stand-By Mode in Games?

This depends on the kind of game you want to develop. If the player has to interact with the game constantly or if he only has a limited time to draw, the stand-by mode usually doesn’t need to be disabled.

It’s relevant to disable the stand-by mode only in video-or demonstration modes, when the player doesn’t need to interact at all for a certain time. It’s more important, how the game reacts on the stand-by mode. It’s the best solution if a game automatically switches to the pause-menu on a stand-by, where the player can easily resume the game.

How to suppress the Stand-By Mode?

You use so called “Wakelocks” to suppress the stand-by mode on a Android Phone. Here I show you a sample implementation using the game-engine e3roid. It’s very important to release the Wakelock before exiting the game.

Manifest:

You need to request the nessesary permision:

<uses-permission android:name="android.permission.WAKE_LOCK" />

Main Class:

public class StoneSetter extends E3Activity {
private PowerManager.WakeLock wl;
public E3Scene onLoadScene() {
   ...
   PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
   wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "SomeTag");
   wl.acquire();
}
 
public boolean onKeyDown(E3Scene in_scene, int keyCode, KeyEvent event) {
if((keyCode == KeyEvent.KEYCODE_MENU || keyCode == KeyEvent.KEYCODE_BACK)){
   exitGame();
   return true;
}else{
   return false;
}
}
 
public void exitGame(){
  wl.release();
  finish();
}
 
}

Android Game StoneSetter published

Yesterday evening I finally published the first  version of my Android game called StoneSetter in the Android Market.

You find further information about the game on the page “Andorid: Stonesetter” or in the Andorid Market.

If you don’t own a Android device you can have a glimpse at the “Web-Game: StoneSetter” where you get idea on how the game works.

e3roid example: Score handling – displaying the score

Something nearly every classic game needs, is the display of a score. A simple text doesn’t look “game like” – so a normal “textsprite” wasn’t my choice for displaying the score.

In this article you find my implementation a score-display class for e3roid based on animated sprites. I could also have used “TiledSprites”, but I still have the vision of letting the numbers change with animation – but I haven’t started implementing this yet.

To use the source code below you first need a e3roid body. Best is to extend the code of the Tutorial “Handle touch events” on the e3roid-page. If you follow the instructions below, the course will be increased with each touch-action.

Here you see how a sample coding could look like:

Continue reading