diff pytouhou/game/games.py @ 188:008f90ebfdc0

Fix replay handling and add support for encrypted replays
author Thibaut Girka <thib@sitedethib.com>
date Thu, 27 Oct 2011 14:24:07 +0200
parents 80a4c7ed43b3
children
line wrap: on
line diff
--- a/pytouhou/game/games.py
+++ b/pytouhou/game/games.py
@@ -18,7 +18,7 @@ from pytouhou.game.bullettype import Bul
 from pytouhou.game.itemtype import ItemType
 
 class EoSDGame(Game):
-    def __init__(self, resource_loader, players, stage, rank, difficulty):
+    def __init__(self, resource_loader, players, stage, rank, difficulty, **kwargs):
         etama3 = resource_loader.get_anm_wrapper(('etama3.anm',))
         etama4 = resource_loader.get_anm_wrapper(('etama4.anm',))
         bullet_types = [BulletType(etama3, 0, 11, 14, 15, 16, hitbox_size=4),
@@ -48,5 +48,5 @@ class EoSDGame(Game):
                       Character(player01, 5., 2.5, 2.5, 42.)]
 
         Game.__init__(self, resource_loader, players, stage, rank, difficulty,
-                      bullet_types, item_types, characters, nb_bullets_max=640)
+                      bullet_types, item_types, characters, nb_bullets_max=640, **kwargs)