Mercurial > fife-parpg
diff clients/rio_de_hola/scripts/world.py @ 245:ed1565a5a2a0
Fixed second camera in rio.
Now multiple Camera.setLocation calls per frame are handled correctly.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 25 Mar 2009 14:17:59 +0000 |
parents | 9a1529f9625e |
children | 8156de05a544 |
line wrap: on
line diff
--- a/clients/rio_de_hola/scripts/world.py Wed Mar 25 09:38:10 2009 +0000 +++ b/clients/rio_de_hola/scripts/world.py Wed Mar 25 14:17:59 2009 +0000 @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import fife, math, random import pychan import pychan.widgets as widgets @@ -145,8 +146,8 @@ self.initial_cam2_x = self.cameras['small'].getLocation().getExactLayerCoordinates().x self.cur_cam2_x = self.initial_cam2_x self.cam2_scrolling_right = True - self.cameras['small'].setEnabled(False) - + # We need to set the second cameras location + self.cameras['small'].setLocation(self.hero.agent.getLocation()) self.target_rotation = self.cameras['main'].getRotation() def save(self, filename):