Mercurial > fife-parpg
diff clients/rio_de_hola/scripts/world.py @ 255:51cc05d862f2
Merged editor_rewrite branch to trunk.
This contains changes that may break compatibility against existing clients.
For a list of changes that may affect your client, see: http://wiki.fifengine.de/Changes_to_pychan_and_FIFE_in_editor_rewrite_branch
author | cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 08 Jun 2009 16:00:02 +0000 |
parents | 040387b7167f |
children |
line wrap: on
line diff
--- a/clients/rio_de_hola/scripts/world.py Wed Jun 03 19:29:52 2009 +0000 +++ b/clients/rio_de_hola/scripts/world.py Mon Jun 08 16:00:02 2009 +0000 @@ -172,8 +172,14 @@ For this techdemo two cameras are used. One follows the hero(!) via 'attach' the other one scrolls around a bit (see the pump function). """ + camera_prefix = self.filename.rpartition('.')[0] # Remove file extension + camera_prefix = camera_prefix.rpartition('/')[2] # Remove path + camera_prefix += '_' + for cam in self.view.getCameras(): - self.cameras[cam.getId()] = cam + camera_id = cam.getId().replace(camera_prefix, '') + self.cameras[camera_id] = cam + self.cameras['main'].attach(self.hero.agent) self.view.resetRenderers()