lastminutelabs / phonefight

This URL has Read+Write access

rux (author)
Thu Jan 29 09:02:15 -0800 2009
commit  21641881b6c10301a3a0dd39aadaef8aed447775
tree    0a16142c509f30e930df1fa3171b768927c2c8f4
parent  67cf1b0a8f0416da3e7df798e0014def95b0d83c
phonefight / README
100644 187 lines (120 sloc) 5.989 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
Phone Fight v1.0
----------------
 
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.
 
It was originally conceived and coded (hacked) in about twelve hours
by a team from lastminute.com labs over the course of the Over the
Air event held at Imperial College in London on April 4th-5th 2008.
 
After much procrastination, it was re-hashed into a useable, playable
and above all installable version towards the end of 2008 and the
beginning of 2009
 
It is implemented using Python for S60.
 
http://labs.lastminute.com/phonefight
http://www.overtheair.org
http://wiki.opensource.nokia.com/projects/PyS60
http://wiki.forum.nokia.com/index.php/S60_Sensor_API
 
Installation
------------
 
Please see the INSTALL file for detailed instructions on how to
install Phone Fight.
 
 
How to play
-----------
 
Please see the file PLAYING for instructions on how to play the game.
 
 
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.
 
lastminute.com are not liable for any damage you cause to yourself,
your phone or anything else when playing Phone Fight.
 
 
Compatibility
------------
 
The game has been tested on the original Nokia N95 and the 8GB model
and is known to work (mostly). It may work on similar models such as
the N82.
 
 
Known limitations
-----------------
 
Bugs:
 
- Both players should give the same answer to the question 'Play again?
  Yes/No'. Failure to do so will confuse the phone that answered "yes"
  to the question, and you will have to re-start Phone Fight in order
  to continue playing
 
- There probably plenty of other bugs. Beware.
 
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).
 
- This isn't really a very good simulation of a sword fight. It's
  still fun, though.
 
 
Potential improvements
----------------------
 
As well as fixing the above, the following are areas which could be
improved
 
- Incorporate GPS, camera and network functionality...
 
 
Program copyright
-----------------
 
Phone Fight is Free software and is Copyright (C) 2008 lastminute.com
of 39 Victoria Street, London, United Kingdom SW1H 0EU
 
We offer it in the hope that it will be interesting and entertaining,
but we provide no warranties of any kind.
 
You may copy, modify and redistribute the program under the terms of
the GNU General Public Licence, version 2. You will find a copy of the
licence in the GPL file.
 
 
Sound samples copyright
-----------------------
 
The samples in the sounds directory were obtained from The Freesound
Project (http://freesound.iua.upf.edu/) and are distributed under the
terms of the Creative Commons Sampling Plus 1.0 licence.
 
You will find details of this licence at:
 
http://creativecommons.org/licenses/sampling+/1.0/
 
Samples used from Freesound:
 By Sruddi1 (http://freesound.iua.upf.edu/usersViewSingle.php?id=268399)
   Grunts.wav (http://freesound.iua.upf.edu/samplesViewSingle.php?id=34875)
 By Erdie (http://freesound.iua.upf.edu/usersViewSingle.php?id=118241)
   male-fight02.ogg (http://freesound.iua.upf.edu/samplesViewSingle.php?id=44262)
   sword01.wav (http://freesound.iua.upf.edu/samplesViewSingle.php?id=27826)
   sword02.ogg (http://freesound.iua.upf.edu/samplesViewSingle.php?id=27856)
   sword03.wav (http://freesound.iua.upf.edu/samplesViewSingle.php?id=27857)
   sword04.wav (http://freesound.iua.upf.edu/samplesViewSingle.php?id=27858)
 By mich3d (http://freesound.iua.upf.edu/usersViewSingle.php?id=32482)
   Whoosh_Swish_01.wav (http://freesound.iua.upf.edu/samplesViewSingle.php?id=12656)
   Whoosh_Swish_02.wav (http://freesound.iua.upf.edu/samplesViewSingle.php?id=12657)
   Whoosh_Swish_03.wav (http://freesound.iua.upf.edu/samplesViewSingle.php?id=12658)
 By lostchocolatelab (http://freesound.iua.upf.edu/usersViewSingle.php?id=1402)
   10SWORD01.aif (http://freesound.iua.upf.edu/samplesViewSingle.php?id=1464)
 
We have renamed, converted, cropped and re-pitched these files.
 
 
Lightsaber sounds were found at theforce.net
 
http://boards.theforce.net/fan_films/b10015/22852131/p1/
 
 
 
 
 
Images copyright
----------------
 
Imagery for this software was either taken from public domain works,
from sources that allow redistribution with attribution, or were created
from scratch. Here are links to images that require attribution
 
Portchester Castle Gate by scalespeeder
http://www.flickr.com/photos/scalespeeder/2389844916/
 
Futuristic pedestrian bridge from Tokyu Hands to Kinokuniya bookstore by eliazar
http://flickr.com/photos/eliazar/3149562326/
 
Lightsaber background image by Sayan
http://commons.wikimedia.org/wiki/File:Lightsaber_blue.png
 
Sword background by midnight-digital
http://flickr.com/photos/midnight-digital/2723088587/
 
 
 
Thanks
------
 
Our thanks go to the following people:
 
- Graham Oldfield, the author of the N95 Light Sabre application,
  which inspired this project. http://graho.wordpress.com/
 
- The creators of the sound effects used in the game (see Copyright
  above) and The Freesound Project.
 
- Juergen Scheible and Ville Tuulos, the authors of the Mobile Python
  book (ISBN 978-0-470-51505-1), without which we would not have been
  able to code this prototype so quickly.
 
- The contributors to Forum Nokia, where we picked up a few coding
  tips, and especially to Cyke64 for his axyz module, and Nokia
  themselves for supporting this sort of development on their phones.
 
- The organisers of the Over The Air event
 
Enjoy your phone fighting!
 
The lastminute.com labs team.