comparison pytouhou/game/player.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 ac2891afb0bb
children c9433188ffdb
comparison
equal deleted inserted replaced
389:eef492100f4c 390:b11953cf1d3b
61 61
62 self.speeds = (self.sht.horizontal_vertical_speed, 62 self.speeds = (self.sht.horizontal_vertical_speed,
63 self.sht.diagonal_speed, 63 self.sht.diagonal_speed,
64 self.sht.horizontal_vertical_focused_speed, 64 self.sht.horizontal_vertical_focused_speed,
65 self.sht.diagonal_focused_speed) 65 self.sht.diagonal_focused_speed)
66
67 self.hitbox_half_size = self.sht.hitbox / 2.
68 self.graze_hitbox_half_size = self.sht.graze_hitbox / 2.
69 66
70 self.fire_time = 0 67 self.fire_time = 0
71 68
72 self.state = state 69 self.state = state
73 self.direction = None 70 self.direction = None