A sprite whose screen coordinates and layer are calculated based on
its position in world coordinates in such a way as to
A special type of sprite that's used for isometric 3d display. Offset
is from the *midbottom* of the sprite!
Method Summary |
|
__init__(self,
category,
x,
y,
animation,
on_floor)
|
|
move(self,
dx,
dy)
|
|
move_to(self,
x,
y)
|
|
_getlayer(self)
|
|
_getx(self)
|
|
_gety(self)
|
Inherited from Sprite |
|
__getstate__ (self)
|
|
__setstate__ (self,
state)
|
|
advance_animation (self,
ticks)
Advance this sprite's animation by the given number of ticks. |
|
animation_duration (self,
animation)
What is the total time to play the current animation? |
|
animation_image (self,
animation,
framenum)
|
|
draw (self,
screen,
duration,
dx,
dy)
Draw this widget to the screen. |
|
draw_scaled (self,
surface,
dx,
dy,
scalefac)
|
|
goto_frame (self,
framenum)
|
|
has_animation (self,
animation)
|
|
num_frames (self)
|
|
restart_animation (self)
Move this sprite's animation to its first frame. |
|
_set_animation (self,
animation,
restart)
|
|
_set_category (self,
category,
animation,
restart)
|
Inherited from object |
|
__delattr__ (...)
x.__delattr__('name') <==> del x.name |
|
__getattribute__ (...)
x.__getattribute__('name') <==> x.name |
|
__hash__ (x)
Return hash(x)... |
|
__new__ (T,
S,
...)
Return a new object with type S, a subtype of T... |
|
__reduce__ (...)
helper for pickle |
|
__reduce_ex__ (...)
helper for pickle |
|
__repr__ (x)
Return repr(x)... |
|
__setattr__ (...)
x.__setattr__('name', value) <==> x.name = value |
|
__str__ (x)
Return str(x)... |
Instance Variable Summary |
Inherited from Sprite |
|
animation_speed : What speed to advance the animation at, in ticks/msec. |
|
layer : The sprite's layer. |
|
_animation : The sprite's current AnimationSequence. |
|
_framenum : The animation frame that is currently being displayed. |
|
_rect : A pygame Rect recording the size and location of the
sprite's image. |
|
_ticks : The number of ticks for which we have been displaying the current
frame. |
Inherited from WorldWidget |
|
movement_callback : A callback method that should be called whenever the sprite is
moved. |
NoneType |
rect : A pygame Rect describing the extent of this widget, in
world coordinates. |