GameObject classes form the core of our game engine. The interface offered by the
Component class is as easy as this:
class Component(object): __slots__ = ['gameobject'] def start(self): pass def update(self, dt): pass def stop(self): pass def on_collide(self, other, contacts): pass
These methods define the life cycle of our components:
dtargument is the elapsed time in seconds since the previous frame.