comparison pytouhou/game/laser.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 690b5faaa0e6
children c9433188ffdb
comparison
equal deleted inserted replaced
389:eef492100f4c 390:b11953cf1d3b
203 self.removed = False 203 self.removed = False
204 self._laser_type = laser_type 204 self._laser_type = laser_type
205 self.origin = origin 205 self.origin = origin
206 self.objects = [self] 206 self.objects = [self]
207 207
208 self.hitbox_half_size = hitbox[0] / 2., hitbox[1] / 2. 208 self.hitbox = hitbox[0], hitbox[1]
209 209
210 self.frame = 0 210 self.frame = 0
211 self.duration = duration 211 self.duration = duration
212 212
213 self.sprite_idx_offset = sprite_idx_offset 213 self.sprite_idx_offset = sprite_idx_offset