Mercurial > fife-parpg
comparison demos/shooter/scripts/world.py @ 494:e241d7553496
Fixing the epydoc markup. Did some more commenting.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 10 May 2010 15:54:21 +0000 |
parents | 16ceb3228324 |
children | ae9f5383f5b1 |
comparison
equal
deleted
inserted
replaced
493:e29853880e87 | 494:e241d7553496 |
---|---|
149 self._genericrenderer.addActiveLayer(self._map.getLayer('objects')) | 149 self._genericrenderer.addActiveLayer(self._map.getLayer('objects')) |
150 self._genericrenderer.setEnabled(True) | 150 self._genericrenderer.setEnabled(True) |
151 | 151 |
152 | 152 |
153 def renderBoundingBox(self, obj): | 153 def renderBoundingBox(self, obj): |
154 """ | |
155 Just a hack to render an objects bounding box. | |
156 """ | |
157 | |
154 bbox = copy.copy(obj.boundingbox) | 158 bbox = copy.copy(obj.boundingbox) |
155 | 159 |
156 #apply the object layer scale | 160 #apply the object layer scale |
157 bbox.x /= 0.25 | 161 bbox.x /= 0.25 |
158 bbox.y /= 0.25 | 162 bbox.y /= 0.25 |