2d Examples
Examples demonstrating 2d concepts and features.
2D Shapes
Render 2D shape primitives like circles and rectangles.
Bloom 2D
Bloom post-processing effect with glowing 2D sprites and meshes.
CPU Draw
Modify image pixel data directly from the CPU each frame.
Mesh 2D
Render a 2D mesh from a rectangle primitive with a color material.
Mesh 2D Alpha Mode
Demonstrate different alpha blending modes for 2D meshes.
Mesh 2D Vertex Color Texture
Render a 2D mesh with per-vertex colors blended with a texture.
Move Sprite
A sprite that moves back and forth across the screen.
Rotation
Rotate a 2D sprite continuously using a custom rotation speed.
Sprite
Displays a single sprite loaded from an image file.
Sprite Animation
Animate sprites in response to keyboard input with configurable FPS.
Sprite Flipping
Displays a sprite flipped horizontally using the flip_x property.
Sprite Sheet
Animate a sprite by cycling through frames in a sprite sheet.
Sprite Tile
A sprite tiled in a grid with an oscillating size animation.
Text 2D
Render and animate text in 2D world space.
Transparency 2D
Display overlapping sprites with different transparency levels.