diff pytouhou/game/games.py @ 130:11ab06f4c4c6

Introduce characters!
author Thibaut Girka <thib@sitedethib.com>
date Sat, 10 Sep 2011 22:48:56 +0200
parents 174324a4da51
children 429de58498f9
line wrap: on
line diff
--- a/pytouhou/game/games.py
+++ b/pytouhou/game/games.py
@@ -13,6 +13,7 @@
 ##
 
 from pytouhou.game.game import Game
+from pytouhou.game.character import Character
 from pytouhou.game.bullettype import BulletType
 
 class EoSDGame(Game):
@@ -30,4 +31,13 @@ class EoSDGame(Game):
                         BulletType(etama3, 8, 13, 20, 20, 20),
                         BulletType(etama4, 0, 1, 2, 2, 2)]
 
-        Game.__init__(self, resource_loader, players, stage, rank, difficulty, bullet_types)
+        player00 = resource_loader.get_anm_wrapper(('player00.anm',))
+        player01 = resource_loader.get_anm_wrapper(('player01.anm',))
+        characters = [Character(player00, 4., 2., 4.),
+                      Character(player00, 4., 2., 4.),
+                      Character(player01, 5., 2.5, 5.),
+                      Character(player01, 5., 2.5, 5.)]
+
+        Game.__init__(self, resource_loader, players, stage, rank, difficulty,
+                      bullet_types, characters)
+