minui 0.6.4

A minimalist framework for building terminal UIs in Rust.
Documentation
//! Collision detection system for game objects (planned feature).
//!
//! This module provides collision detection between sprites, tiles, and other game objects.
//! It supports various collision shapes and detection algorithms optimized for
//! terminal-based games.
//!
//! ## Planned Features
//!
//! - **Bounding Box Collision**: Rectangle-based collision detection
//! - **Point Collision**: Point-in-shape testing
//! - **Line Collision**: Ray casting and line intersection
//! - **Spatial Partitioning**: Efficient collision detection for many objects
//! - **Collision Callbacks**: Custom response to collision events
//!
//! ## Future API Design
//!
//! ```rust,ignore
//! use minui::game::collision::{CollisionWorld, BoundingBox, CollisionLayer};
//!
//! // Create collision world
//! let mut world = CollisionWorld::new();
//!
//! // Define collision layers
//! const PLAYER: CollisionLayer = 0;
//! const ENEMIES: CollisionLayer = 1;
//! const WALLS: CollisionLayer = 2;
//! const PICKUPS: CollisionLayer = 3;
//!
//! // Add collision objects
//! let player_id = world.add_object(
//!     BoundingBox::new(10.0, 10.0, 1.0, 1.0),
//!     PLAYER
//! );
//!
//! let wall_id = world.add_object(
//!     BoundingBox::new(15.0, 10.0, 3.0, 5.0),
//!     WALLS
//! );
//!
//! // Check for collisions
//! if world.check_collision(player_id, wall_id) {
//!     println!("Player hit wall!");
//! }
//!
//! // Query area for objects
//! let nearby = world.query_area(
//!     BoundingBox::new(8.0, 8.0, 5.0, 5.0),
//!     ENEMIES | PICKUPS // Check multiple layers
//! );
//! ```

// TODO: Implement collision detection system
// This will include bounding boxes, spatial partitioning, and collision callbacks