| Trees | Indices | Toggle frames |
|---|
batch.cocosnode.CocosNode --+
|
batch.BatchableNode --+
|
pyglet.sprite.Sprite --+
|
Sprite
Sprites are sprites that can execute actions.
Example:
sprite = Sprite('grossini.png')
|
supported_classes
Sprites are sprites that can execute actions.
|
|
__init__(self,
image,
position=(0,0),
rotation=0,
scale=1,
opacity=255,
color=(255,255,255),
anchor=None)
Initialize the sprite
|
|
| draw(self) | |
Inherited from batch.BatchableNode:
add,
remove,
set_batch
|
|
|
group
group.
|
|
|
children_group
children group.
|
|
|
position
position of the sprite in (x,y) coordinates
|
|
|
rotation
rotation degrees of the sprite.
|
|
|
scale
scale of the sprite where 1.0 the default value
|
|
|
opacity
opacity of the sprite where 0 is transparent and 255 is solid
|
|
|
color
color of the sprite in R,G,B format where 0,0,0 is black and 255,255,255 is white
|
image_anchor_x = property(_get_anchor_x, _set_anchor_x)
|
|
image_anchor_y = property(_get_anchor_y, _set_anchor_y)
|
|
image_anchor = property(_get_anchor, _set_anchor)
|
| Trees | Indices | Toggle frames |
|---|
| Generated by Epydoc 3.0beta1 on Sat Sep 6 13:21:12 2008 | http://epydoc.sourceforge.net |