# HG changeset patch # User Thibaut Girka # Date 1329317835 -3600 # Node ID e7f40bff72fcd79acf8ebc6b05353c4d07ff1a5a # Parent d95beee0087a001f9bfb28859962ce7770dd216e Fix launch_anim_offsets. diff --git a/pytouhou/game/lasertype.py b/pytouhou/game/lasertype.py --- 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 diff --git a/pytouhou/games/eosd.py b/pytouhou/games/eosd.py --- 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),