comparison pytouhou/games/sample/game.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 2cf518129725
children
comparison
equal deleted inserted replaced
614:2cf518129725 615:d1f0bb0b7a17
24 24
25 from pytouhou.vm import PythonMainRunner 25 from pytouhou.vm import PythonMainRunner
26 from . import enemies, shots 26 from . import enemies, shots
27 27
28 28
29 class Common(object): 29 class Common:
30 default_power = [0, 64, 128, 128, 128, 128, 0] 30 default_power = [0, 64, 128, 128, 128, 128, 0]
31 31
32 def __init__(self, resource_loader, player_characters, continues, *, 32 def __init__(self, resource_loader, player_characters, continues, *,
33 width=384, height=448): 33 width=384, height=448):
34 self.width, self.height = width, height 34 self.width, self.height = width, height