Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/stateview.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-05-02 04:31:23 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-05-02 04:31:23 (GMT)
commit6d9cbdc157e0b7d0a0fdf807ec8dfb2d510f2edb (patch)
tree68d50bd790e210614e222c234811edf7ce997623 /stateview.py
parent86a0f2454fa3a9b255cabdcd3f7ab362746925d0 (diff)
Start movement of character in play mode
Now the character does not walk all time left and right, but wait to a click, and go to the place, if the click is over a lateral wall or over a door, the character walk and later the map change to the new selected vision. Is not working all right now. When the character go to the left the svg is not rendered. A posible solution using to ImageSurfaces to cache te rendering is commented in character.py Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'stateview.py')
-rw-r--r--stateview.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/stateview.py b/stateview.py
index 931ea3f..3a6624b 100644
--- a/stateview.py
+++ b/stateview.py
@@ -11,6 +11,7 @@ import cairo
import rsvg
import model
import math
+import logging
class StateView():
@@ -38,7 +39,7 @@ class StateView():
replied_questions = len(state['replied_questions'])
scale = float(self._svg_width) / float(self._cell_size)
- print "scale", scale
+ logging.error('draw stateview scale %s', scale)
ctx.save()
ctx.translate(self._x, self._y)
for n in range(cant_questions):