Scales the map surface
(self, scale)
| 868 | return int(self.scale * self._pixels_per_meter * width) |
| 869 | |
| 870 | def scale_map(self, scale): |
| 871 | """Scales the map surface""" |
| 872 | if scale != self.scale: |
| 873 | self.scale = scale |
| 874 | width = int(self.big_map_surface.get_width() * self.scale) |
| 875 | self.surface = pygame.transform.smoothscale(self.big_map_surface, (width, width)) |
| 876 | |
| 877 | |
| 878 | class World(object): |