Mercurial > touhou
view pytouhou/game/character.py @ 174:c0183515a0a3
Use integers instead of floats to avoid filtering and ugly approximations (like the official game)
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Fri, 21 Oct 2011 19:20:03 +0200 |
parents | 11ab06f4c4c6 |
children | 80a4c7ed43b3 |
line wrap: on
line source
class Character(object): def __init__(self, anm_wrapper, speed, focused_speed, hitbox_size): self.anm_wrapper = anm_wrapper self.speed = speed self.focused_speed = focused_speed self.hitbox_size = hitbox_size