Welcome to the Imserba Smart Phones Forum & Free Download.
Results 1 to 6 of 6
  1. #1
    ((i)) Junior
    Join
    Jul 2007
    Posts
    91
    Send thanks
    29
    86 Thanks in 38 Posts

    Phone fight-hack and slash-em-up with your katana phone(n95)

    Phone Fight is a prototype sword-fighting game for two players
    equipped with Nokia 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.


    this is a prototype and installing will be a bit tricky
    you will need to have python installed in your phone to be able to play it



    Safety
    ------

    Remember to stand well back from your opponent when playing. We know
    to our cost that it is easy to damage your phone in the heat of
    battle. It may also be wise to use a wrist strap.

    i am not liable for any damage you cause to yourself,
    your phone or anything else when playing Phone Fight.



    Known limitations
    -----------------

    Bugs:

    - Both players must give the same answer to the question 'Play again?
    Yes/No'. Failure to do so will cause the script to crash. The
    inter-phone protocol needs to be extended to negotiate this.

    - There probably plenty of other bugs. Beware.

    Workarounds:

    - We have found the Python S60 socket.bt_discover() call to be
    faulty. It causes the Python interpreter to crash. To avoid this, we
    have added the facility to hard-code a list of phone bluetooth
    addresses in the script. To use this facility, amend the script to
    contain the correct names and bluetooth addresses for your group of
    phone fighters, then answer 'No' when the challenger is prompted
    with 'Discover automatically?'

    Gameplay inadequacies:

    - The program knows about re-orientation of the phone a short while
    after it happens, leading to unexpectedly (un)successful attacks.

    - Each player is essentially defending all the time (either
    horizontally or vertically).

    - The application is not very pretty to look at.

    - This isn't really a very good simulation of a sword fight. It's
    still fun, though.




    if asked password is 1234
    Attached Files Attached Files
    Last edited by bolabola; Sep 16th, 2008 at 08:24.
    n gage id-bolabola
    fav games-reset gen,cotd

  2. The Following User Says Thank You to bolabola For This Useful Post:


  3. #2
    ((i)) Junior
    Join
    Jul 2007
    Posts
    91
    Send thanks
    29
    86 Thanks in 38 Posts
    Prerequisites
    -------------

    Each participating N95 phone requires:

    - The N95 Accelerometer plugin from
    http://research.nokia.com/files/N95_...elerometer.zip

    You may also need to install firmware version 20.0.015 or newer

    See this wiki page for more details:
    http://wiki.forum.nokia.com/index.ph...c16ytb4ms1E-20

    - Python for S60 v1.4.2 or newer: see http://sourceforge.net/projects/pys60

    - Cyke64's axyz Python extension from: http://sourceforge.net/project/showf...kage_id=252008
    (install the newest self-signed version)

    Installation
    ------------

    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.

    - (This step is only necessary if socket.bt_discover() fails to
    work. Skip it to begin with.) Edit python/fight.py to alter the
    value of the PHONES variable such that it contains the names of the
    participating phones and their corresponding bluetooth
    addresses. You can choose what string you like for the phone name.


    - Copy python/fight.py to e:\python or c:\python on the phone
    n gage id-bolabola
    fav games-reset gen,cotd

  4. The Following User Says Thank You to bolabola For This Useful Post:


  5. #3
    ((i)) Junior
    Join
    Jul 2007
    Posts
    91
    Send thanks
    29
    86 Thanks in 38 Posts
    for you lazy ppl here is Cyke64's axyz Python extension the accelerometer plugin and python app(the script shell is optional but u will get a few other script to run)
    Attached Files Attached Files
    Last edited by bolabola; Sep 16th, 2008 at 10:20.
    n gage id-bolabola
    fav games-reset gen,cotd

  6. The Following User Says Thank You to bolabola For This Useful Post:


  7. #4
    ((i)) Junior
    Join
    Jul 2007
    Posts
    91
    Send thanks
    29
    86 Thanks in 38 Posts
    Object of the game
    ------------------

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


    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.


    * NOTE that the Python interpreter may crash at this point. This
    probably means that the socket.bt_discover() call is faulty. To remedy
    this, alter the script as described in INSTALL, then rerun the script
    and answer 'no' to the question 'Discover automatically'. If prompted
    for a channel, enter the number displayed on the champion's phone.


    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.


    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! (see 'Known limitations' in the README file)


    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.
    n gage id-bolabola
    fav games-reset gen,cotd

  8. #5
    ((i)) Junior
    Join
    Jul 2007
    Posts
    91
    Send thanks
    29
    86 Thanks in 38 Posts
    to check your phone mac address type *#2820# in standby mode
    n gage id-bolabola
    fav games-reset gen,cotd

  9. #6
    Just Visit
    Join
    Jul 2007
    Posts
    4
    Send thanks
    1
    1 thank in 1 Post
    very amazing thanks man

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •