Built-in Bundle¶
The arepy.bundle package contains reusable components and systems intended to cover common game patterns.
Available components¶
The current public bundle exports:
RigidBody2DSpriteTransformCamera2DCamera3DModel3DMaterial3DLight3DTransform3DMesh3D
Frequently used 2D components¶
Transform¶
Transform stores:
position: Vec2scale: Vec2origin: Vec2rotation: float
Default vectors are created per instance, so different entities do not accidentally share mutable defaults.
RigidBody2D¶
RigidBody2D stores:
velocity: Vec2accelerationdecelerationmax_velocity
Sprite¶
Sprite stores:
asset_idsrc_rectz_indexflipped
Built-in systems¶
The current bundle systems package exposes two reusable systems:
movement_systemrender_system
Both use query-driven iteration over components rather than entity lookups inside the hot loop.
Where to look next¶
examples/bunnymark.pyshows a large number of 2D moving spritesexamples/cubemark_3d.pyshows the 3D side of the engine