Mods I don’t know if it is in the right section. It is a python script so have posted it here

Inspired by the popular “LightSaber”, Phone Fight is a prototype sword-fighting game for two players equipped with N95 or compatible phones. It makes use of the accelerometer within the phones to detect simulated sword slashes and blocks, and Bluetooth to communicate those moves between the phones and to notify the winning player of victory.

The game is written in the popular programming language Python. The game is still an early alpha version, so it’s not that easy to install the game. But by following the instructions below, you should soon be able to fight against your friends.

Prerequisites
Each participating N95, N95 8GB or N82 phone requires:
- The N95 Accelerometer plugin from
- Python for v1.4.2 or newer
- Cyke64’s axyz Python extension from

For each participating phone:
- Make a directory on your phone’s external memory drive called e:\sounds\phonefight and copy everything from the sounds directory into there. The “e:\sounds” directory may be displayed as ‘Sound Clips’ on your phone. Don’t worry about that. Just make a phonefight subdirectory in there.

- Copy “python/fight.py” to “e:\python” or “c:\python” on the phone

Setup
Each player should start the fight.py script from the Python shell’s ‘Run Script’ menu option.

One player should select ‘I am the Champion’ from the menu that appears. This make his or her phone the ’server’. A message will appear saying ‘waiting for client on channel 5…’ (or possibly some other number).

The other player should select ‘I am the Challenger’. He or she will be then prompted with ‘Discover automatically?’. He or she should then answer ‘yes’ and a a list of nearby bluetooth-enabled phones will appear*. The other player should select the champion’s phone from this list.

If setup is successful, a sword ‘unsheathing’ sound effect will be heard on both phones, and both players can commence combat.

Combat
A vertical attack is successfully defended by a horizontal block and vice versa.

To execute a vertical attack:
Start with the phone screen facing you in a vertical (i.e. portrait) position. Move the phone rapidly downward and away from you.

To execute a horizontal attack:
Start with the phone screen facing you pointing to the left or right, it doesn’t matter which (i.e. landscape). Move the phone rapidly away and to the side.

To block:
Hold your phone vertically or horizontally, as appropriate, with the screen facing you. Note that holding the phone upside-down is *not* a valid block.

In either form of attack, a sword ’swhoosh’ sound should be heard. If your attack is successful (i.e. not blocked), your opponent’s phone will play an ‘urrgh’ sound effect and he or she will lose of his or her 10 health points. Otherwise, a ‘ching’ sound effect will be heard.

When one player has no health left, the game is over.

The object of the game is to deliver ten successful blows to your
opponent before he or she can do the same.

Playing again
At the end of the game, each player will be told the result and prompted to play again. Each player must give the same answer, or the game will crash!

Practice Mode
Selecting ‘I need practice’ from the first menu will initiate a practice mode, where you can swoosh your virtual sword to your heart’s content. No other phone is necessary in this mode.

All of you who have friends with accelerometer supporting phones, just try to follow the steps, it’s not as hard as it looks like. And if it is, the fun you will have to play this game should be always worthwhile!

Download :

screenshot_1jpg.jpg (191 KB)
screenshot_2.png (81 KB)
screenshot_3.png (81 KB)
phonefight0.3.rar (819 KB)

Share:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Live
  • Ma.gnolia
  • MyShare
  • Reddit
  • Socialogs
  • SphereIt
  • Spurl
  • StumbleUpon
  • Technorati
  • YahooMyWeb
Related posts :
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...