Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2013-01-04 17:27:01 (GMT)
committer Walter Bender <walter.bender@gmail.com>2013-01-04 17:27:01 (GMT)
commit6f9d3659509f9b9307d38c751519051722128803 (patch)
tree7f57288672916f458c09e989ce9f6eafc109c56e
parenta98c1fcd9518f09076187bb7ebd2d212a88d1256 (diff)
almost done
-rw-r--r--game.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/game.py b/game.py
index 965fe24..70f672d 100644
--- a/game.py
+++ b/game.py
@@ -170,6 +170,8 @@ class Game():
self._dots[x + y * NINE].move((
xoffset + x * (self._dot_size + self._space),
y * (self._dot_size + self._space)))
+ self._dots[x + y * NINE].set_shape(
+ self._new_dot(self._colors[WHITE]))
self._dots[x + y * NINE].type = DOT
self._dots[x + y * NINE].set_layer(100)
self._lightbg.set_label('Tap on the yellow dot.')
@@ -416,48 +418,46 @@ Keep pressing the yellow dots.")
self._shake = 'random2'
GObject.timeout_add(100, read_accelerometer, self)
self._pausing = True
- GObject.timeout_add(10000, self._clear_pause)
+ GObject.timeout_add(2000, self._clear_pause)
def _fade_it(self):
for dot in self._dots:
if dot.type in [RED, YELLOW, BLUE]:
self._fade_dot(dot, 1)
- self._lightbg.set_label("Clap.")
+ self._lightbg.set_label('Going.')
self._shake = 'random2'
self._next = self._fade_it_again
self._pausing = True
- GObject.timeout_add(10000, self._clear_pause)
+ GObject.timeout_add(2000, self._clear_pause)
def _fade_it_again(self):
for dot in self._dots:
if dot.type in [RED, YELLOW, BLUE]:
self._fade_dot(dot, 2)
- self._lightbg.set_label("Clap again.")
+ self._lightbg.set_label('Going.' + '.')
self._shake = 'random2'
self._next = self._and_again
self._pausing = True
- GObject.timeout_add(10000, self._clear_pause)
+ GObject.timeout_add(2000, self._clear_pause)
def _and_again(self):
for dot in self._dots:
if dot.type in [RED, YELLOW, BLUE]:
self._fade_dot(dot, 3)
- self._lightbg.set_label("And again.")
+ self._lightbg.set_label('Going.' + '..')
self._shake = 'random2'
self._next = self._one_last_time
self._pausing = True
- GObject.timeout_add(10000, self._clear_pause)
+ GObject.timeout_add(2000, self._clear_pause)
def _one_last_time(self):
for dot in self._dots:
if dot.type in [RED, YELLOW, BLUE]:
self._fade_dot(dot, 4)
- self._lightbg.set_label("And again.")
+ self._lightbg.set_label('Gone!')
self._shake = None
self._next = self._yellow_dot
- GObeject.timeout_add(500, self._next)
- self._pausing = True
- GObject.timeout_add(10000, self._clear_pause)
+ GObject.timeout_add(500, self._next)
def _fade_dot(self, dot, i):
if i == 4: