Common Modules

These modules provide common functionality and utilities that are used throughout the Tengine framework. They are designed to be reusable and modular, allowing developers to easily integrate them into their own projects. The common modules include:

class tengine.common.transform.Transform(position: tuple[float, float] = (0, 0), rotation: float = 0.0, scale: tuple[float, float] = (1.0, 1.0))[source]

Bases: Component

The Transform component represents the position, rotation, and scale of an entity in the world.

class tengine.common.time.Time[source]

Bases: Resource

class tengine.common.time.TimeSystem[source]

Bases: System

update(entities, resources) bool[source]

Updates the system with the given entities and world information. :param entities: A list of entities to be updated. :type entities: list[Entity] :param resources: The resources available to the system. :type resources: Resources