|
20.
|
|
|
`event`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/sprites:59
|
|
21.
|
|
|
If not None, a function that is called when an event occurs. It takes as arguments: * A pygame event object. * The x coordinate of the event. * The y coordinate of the event. * The time since the sprite manager was first shown. If it returns a non-None value, the interaction ends, and that value is returned.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/sprites:52
|
|
22.
|
|
|
`predict`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/sprites:64
|
|
23.
|
|
|
If not None, a function that returns a list of displayables. These displayables are predicted when the sprite manager is.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/sprites:62
|
|
24.
|
|
|
`ignore_time`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/sprites:72
|
|
25.
|
|
|
If True, then time is ignored when rendering displayables. This should be used when the sprite manager is used with a relatively small pool of images, and those images do not change over time. This should only be used with a small number of displayables, as it will keep all displayables used in memory for the life of the SpriteManager.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/sprites:67
|
|
26.
|
|
|
After being rendered once (before the `update` function is called), SpriteManagers have the following fields:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/sprites:74
|
|
27.
|
|
|
`width`, `height`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/sprites:77
|
|
28.
|
|
|
The width and height of this SpriteManager, in pixels.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/sprites:79
|
|
29.
|
|
|
SpriteManagers have the following methods:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/sprites:82
|