Method Summary |
|
__init__(self,
window)
|
|
clear (self)
Erase sprite to background |
|
direction (self,
rect)
return the direction from the sprite to a point |
|
distance (self,
rect)
return the distance from the sprite to a point |
|
draw (self)
Blit image to layer |
|
move(self)
|
|
onscreen (self,
slack,
**kw)
return True if image is on the screen or layer. |
|
pause(self)
|
|
udraw (self)
Draw image and update display. |
|
unpause(self)
|
Inherited from Sprite |
|
__repr__ (self)
|
|
add (self,
*groups)
add(group or list of of groups, ...) add a sprite to container |
|
add_internal (self,
group)
|
|
alive (self)
alive() -> bool check to see if the sprite is in any groups |
|
groups (self)
groups() -> list of groups list used sprite containers |
|
kill (self)
kill() remove this sprite from all groups |
|
remove (self,
*groups)
remove(group or list of groups, ...) remove a sprite from
container |
|
remove_internal (self,
group)
|
|
update (self,
*args)
|
Inherited from object |
|
__delattr__ (...)
x.__delattr__('name') <==> del x.name |
|
__getattribute__ (...)
x.__getattribute__('name') <==> x.name |
|
__hash__ (x)
x.__hash__() <==> hash(x) |
|
__reduce__ (...)
helper for pickle |
|
__reduce_ex__ (...)
helper for pickle |
|
__setattr__ (...)
x.__setattr__('name', value) <==> x.name = value |
|
__str__ (x)
x.__str__() <==> str(x) |
Inherited from type |
|
__new__ (T,
S,
...)
T.__new__(S, ...) -> a new object with type S, a subtype of T |