Mercurial > touhou
annotate pytouhou/game/character.py @ 179:3c2a9e28198c
Make rand_uint16 slighty easier to understand, and add a rewind function for debugging purposes.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 23 Oct 2011 21:00:53 +0200 |
parents | 80a4c7ed43b3 |
children |
rev | line source |
---|---|
130 | 1 class Character(object): |
176
80a4c7ed43b3
Add grazing check.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
130
diff
changeset
|
2 def __init__(self, anm_wrapper, speed, focused_speed, hitbox_size, graze_hitbox_size): |
130 | 3 self.anm_wrapper = anm_wrapper |
4 self.speed = speed | |
5 self.focused_speed = focused_speed | |
6 self.hitbox_size = hitbox_size | |
176
80a4c7ed43b3
Add grazing check.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
130
diff
changeset
|
7 self.graze_hitbox_size = graze_hitbox_size |