2D scene support (SpriteComponent + 2D render system) #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A 2D scene is just a
Scene: persistent 2D content lives in the ECS like everything else. Canvas stays separate as immediate-mode drawing (see the Canvas immediate-mode issue).What already exists
CameraComponentwithProjection::OrthographicTransformComponent:position.xyfor placement,position.z(or a separate sort key) for draw order, rotate only around ZNeeded
SpriteComponent: texture handle, color/tint, size, and maybe UV rect / pivotShapeComponentfor untextured quads/circlesSceneRendererthat batches sprites, sorted by draw orderDone when
boids_2d) uses a 2D scene instead of Canvas