changeset 289:e7f40bff72fc

Fix launch_anim_offsets.
author Thibaut Girka <thib@sitedethib.com>
date Wed, 15 Feb 2012 15:57:15 +0100
parents d95beee0087a
children 18e4ed141dd8
files pytouhou/game/lasertype.py pytouhou/games/eosd.py
diffstat 2 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/game/lasertype.py
+++ b/pytouhou/game/lasertype.py
@@ -1,6 +1,6 @@
 class LaserType(object):
     def __init__(self, anm_wrapper, anim_index,
-                 launch_anim_offsets=(0, 1, 1, 1, 1, 3, 3, 3, 3, 5, 5, 5, 6, 6, 6, 0)):
+                 launch_anim_offsets=(0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 0)):
         self.anm_wrapper = anm_wrapper
         self.anim_index = anim_index
         self.launch_anim_offsets = launch_anim_offsets
--- a/pytouhou/games/eosd.py
+++ b/pytouhou/games/eosd.py
@@ -41,10 +41,14 @@ class EoSDGame(Game):
                             BulletType(etama3, 3, 12, 17, 18, 19, hitbox_size=6),
                             BulletType(etama3, 4, 12, 17, 18, 19, hitbox_size=5),
                             BulletType(etama3, 5, 12, 17, 18, 19, hitbox_size=4),
-                            BulletType(etama3, 6, 13, 20, 20, 20, hitbox_size=16),
-                            BulletType(etama3, 7, 13, 20, 20, 20, hitbox_size=11),
-                            BulletType(etama3, 8, 13, 20, 20, 20, hitbox_size=9),
-                            BulletType(etama4, 0, 1, 2, 2, 2, hitbox_size=32)]
+                            BulletType(etama3, 6, 13, 20, 20, 20, hitbox_size=16,
+                                       launch_anim_offsets=(0, 1, 1, 2, 2, 3, 4, 0)),
+                            BulletType(etama3, 7, 13, 20, 20, 20, hitbox_size=11,
+                                       launch_anim_offsets=(1,)*28),
+                            BulletType(etama3, 8, 13, 20, 20, 20, hitbox_size=9,
+                                       launch_anim_offsets=(0, 1, 1, 2, 2, 3, 4, 0)),
+                            BulletType(etama4, 0, 1, 2, 2, 2, hitbox_size=32,
+                                       launch_anim_offsets=(0, 1, 2, 3, 4, 5, 6, 7, 8))]
 
         if not laser_types:
             laser_types = [LaserType(etama3, 9),