August'24: Kamaelia is in maintenance mode and will recieve periodic updates, about twice a year, primarily targeted around Python 3 and ecosystem compatibility. PRs are always welcome. Latest Release: 1.14.32 (2024/3/24)

Kamaelia.UI.Pygame.SpriteScheduler.SpriteScheduler

class SpriteScheduler(Axon.Component.component)

SpriteScheduler(cat_args, cat_sprites, background, display_surface, eventHandlerClass) -> new SpriteScheduler component.

Manages updating and blitting a collection of pygame sprites. Instantiates an event handler object to handle dispatching of events from pygame.

Keyword arguments: - cat_args -- arguments for event handler class instantiation - cat_sprites -- Pygame sprite objects to be rendered - background -- Pygame surface to be rendered as a background image - display_surface -- Pygame surface to render sprites onto - eventHandlerClass -- Event handler class, with method: dispatch(event,source)

Inboxes

Outboxes

Methods defined here

Warning!

__init__(self, cat_args, cat_sprites, background, display_surface, eventHandlerClass)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

main(self)

Main loop.


Feedback

Got a problem with the documentation? Something unclear, could be clearer? Want to help with improving? Constructive criticism, preferably in the form of suggested rewording is very welcome.

Please leave the feedback here, in reply to the documentation thread in the Kamaelia blog.