craters-sandbox

A collection of examples, demos, and sandboxes built with the craters game engine (^0.2.0). These projects demonstrate various features and capabilities of the engine.

Examples

SAT Collision

A demonstration of the Separating Axis Theorem (SAT) collision detection library integrated into craters. Features interactive shape control and a benchmark mode with QuadTree spatial partitioning.

RigidBody Physics

A demonstration of the RigidBody physics system. Showcases rigid body dynamics, collision response, friction, restitution, and shape-based collision detection using the craters physics pipeline.

Platformer

A complete platformer game built with ECS, SAT collision detection, sprite animation, and tilemap rendering. Features player physics, collectibles, and a win condition.

Tilemap Manager

A sandbox for testing and demonstrating the TilemapManager component, including loading and rendering tilemaps.

Sprite

Basic sprite rendering and animation examples using the craters Sprite and Canvas2D renderer.

Font

Demonstration of the FontManager and bitmap text rendering capabilities using canvas font atlases.