Mercurial > touhou
comparison pytouhou/games/eosd.py @ 390:b11953cf1d3b
Use only half-size hitboxes for player.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 12 Nov 2012 18:34:24 +0100 |
parents | e1f5dcd4b83e |
children | 6c0cb3eee33e |
comparison
equal
deleted
inserted
replaced
389:eef492100f4c | 390:b11953cf1d3b |
---|---|
33 nb_bullets_max=640, width=384, height=448, prng=None, continues=0): | 33 nb_bullets_max=640, width=384, height=448, prng=None, continues=0): |
34 | 34 |
35 if not bullet_types: | 35 if not bullet_types: |
36 etama3 = resource_loader.get_anm_wrapper(('etama3.anm',)) | 36 etama3 = resource_loader.get_anm_wrapper(('etama3.anm',)) |
37 etama4 = resource_loader.get_anm_wrapper(('etama4.anm',)) | 37 etama4 = resource_loader.get_anm_wrapper(('etama4.anm',)) |
38 bullet_types = [BulletType(etama3, 0, 11, 14, 15, 16, hitbox_size=4, | 38 bullet_types = [BulletType(etama3, 0, 11, 14, 15, 16, hitbox_size=2, |
39 type_id=0), | 39 type_id=0), |
40 BulletType(etama3, 1, 12, 17, 18, 19, hitbox_size=6, | 40 BulletType(etama3, 1, 12, 17, 18, 19, hitbox_size=3, |
41 type_id=1), | 41 type_id=1), |
42 BulletType(etama3, 2, 12, 17, 18, 19, hitbox_size=4, | 42 BulletType(etama3, 2, 12, 17, 18, 19, hitbox_size=2, |
43 type_id=2), | 43 type_id=2), |
44 BulletType(etama3, 3, 12, 17, 18, 19, hitbox_size=6, | 44 BulletType(etama3, 3, 12, 17, 18, 19, hitbox_size=3, |
45 type_id=3), | 45 type_id=3), |
46 BulletType(etama3, 4, 12, 17, 18, 19, hitbox_size=5, | 46 BulletType(etama3, 4, 12, 17, 18, 19, hitbox_size=2.5, |
47 type_id=4), | 47 type_id=4), |
48 BulletType(etama3, 5, 12, 17, 18, 19, hitbox_size=4, | 48 BulletType(etama3, 5, 12, 17, 18, 19, hitbox_size=2, |
49 type_id=5), | 49 type_id=5), |
50 BulletType(etama3, 6, 13, 20, 20, 20, hitbox_size=16, | 50 BulletType(etama3, 6, 13, 20, 20, 20, hitbox_size=8, |
51 launch_anim_offsets=(0, 1, 1, 2, 2, 3, 4, 0), | 51 launch_anim_offsets=(0, 1, 1, 2, 2, 3, 4, 0), |
52 type_id=6), | 52 type_id=6), |
53 BulletType(etama3, 7, 13, 20, 20, 20, hitbox_size=11, | 53 BulletType(etama3, 7, 13, 20, 20, 20, hitbox_size=5.5, |
54 launch_anim_offsets=(1,)*28, | 54 launch_anim_offsets=(1,)*28, |
55 type_id=7), | 55 type_id=7), |
56 BulletType(etama3, 8, 13, 20, 20, 20, hitbox_size=9, | 56 BulletType(etama3, 8, 13, 20, 20, 20, hitbox_size=4.5, |
57 launch_anim_offsets=(0, 1, 1, 2, 2, 3, 4, 0), | 57 launch_anim_offsets=(0, 1, 1, 2, 2, 3, 4, 0), |
58 type_id=8), | 58 type_id=8), |
59 BulletType(etama4, 0, 1, 2, 2, 2, hitbox_size=32, | 59 BulletType(etama4, 0, 1, 2, 2, 2, hitbox_size=16, |
60 launch_anim_offsets=(0, 1, 2, 3, 4, 5, 6, 7, 8), | 60 launch_anim_offsets=(0, 1, 2, 3, 4, 5, 6, 7, 8), |
61 type_id=9)] | 61 type_id=9)] |
62 | 62 |
63 if not laser_types: | 63 if not laser_types: |
64 laser_types = [LaserType(etama3, 9), | 64 laser_types = [LaserType(etama3, 9), |