entity—things that exist in the world

class Entity[source]

Bases: object

A thing that exists in the world.

Currently, an entity is just a container of graphics.

world = None

The World this entity is in. This is set by the world when the entity is added or removed.

graphics = None

GraphicsGroup containing the entity’s graphics, with x=0, y=0.

added()[source]

Called whenever the entity is added to a world.

This is called after world has been changed to the new world.

update()[source]

Called every frame to makes any necessary changes.