comparison pytouhou/game/sprite.py @ 245:d3ba32a9096e

Implement ANM0 instruction 29 and fix 24
author Thibaut Girka <thib@sitedethib.com>
date Mon, 02 Jan 2012 18:46:55 +0100
parents 4f46717390aa
children e04c3e1957c8
comparison
equal deleted inserted replaced
244:2b7f69ad9ccd 245:d3ba32a9096e
21 'angle', 'force_rotation', 'scale_interpolator', 'fade_interpolator', 21 'angle', 'force_rotation', 'scale_interpolator', 'fade_interpolator',
22 'offset_interpolator', 'automatic_orientation', 'blendfunc', 22 'offset_interpolator', 'automatic_orientation', 'blendfunc',
23 'texcoords', 'dest_offset', 'allow_dest_offset', 'texoffsets', 23 'texcoords', 'dest_offset', 'allow_dest_offset', 'texoffsets',
24 'mirrored', 'rescale', 'scale_speed', 'rotations_3d', 24 'mirrored', 'rescale', 'scale_speed', 'rotations_3d',
25 'rotations_speed_3d', 'corner_relative_placement', 'frame', 25 'rotations_speed_3d', 'corner_relative_placement', 'frame',
26 'color', 'alpha', '_rendering_data') 26 'color', 'alpha', 'visible', '_rendering_data')
27 def __init__(self, width_override=0, height_override=0): 27 def __init__(self, width_override=0, height_override=0):
28 self.anm = None 28 self.anm = None
29 self._removed = False 29 self._removed = False
30 self._changed = True 30 self._changed = True
31 self.visible = True
31 32
32 self.width_override = width_override 33 self.width_override = width_override
33 self.height_override = height_override 34 self.height_override = height_override
34 self.angle = 0 35 self.angle = 0
35 self.force_rotation = False 36 self.force_rotation = False