Mercurial > touhou
comparison pytouhou/ui/sdl/gamerenderer.py @ 615:d1f0bb0b7a17
Don’t inherit explicitely from object, we are not on Python 2.7 anymore. :)
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 28 Mar 2015 21:40:51 +0100 |
parents | e15672733c93 |
children | 0ea591b0b29e |
comparison
equal
deleted
inserted
replaced
614:2cf518129725 | 615:d1f0bb0b7a17 |
---|---|
19 | 19 |
20 from pytouhou.utils.helpers import get_logger | 20 from pytouhou.utils.helpers import get_logger |
21 logger = get_logger(__name__) | 21 logger = get_logger(__name__) |
22 | 22 |
23 | 23 |
24 class GameRenderer(object): | 24 class GameRenderer: |
25 def __init__(self, resource_loader, window): | 25 def __init__(self, resource_loader, window): |
26 self.window = window | 26 self.window = window |
27 self.texture_manager = TextureManager(resource_loader, self.window.win) | 27 self.texture_manager = TextureManager(resource_loader, self.window.win) |
28 font_name = join(resource_loader.game_dir, 'font.ttf') | 28 font_name = join(resource_loader.game_dir, 'font.ttf') |
29 try: | 29 try: |