carose 0.1.0

A lightweight 2D Rust game library for sprites, menus, audio, and input handling.
Documentation

Carose

Carose is a lightweight 2D game library for Rust, designed to make sprite-based games, UI menus, audio, and controls easy to work with. It provides a simple, modular API for rendering, input handling, sound, and animations.


Features

  • 2D Window: Create resizable windows with a built-in 5x5 bitmap font for text.
  • Sprites: Solid colors, bitmaps, and animated sprites with velocity and acceleration vectors.
  • Menus: Easy-to-use vertical menus with customizable colors and selection logic.
  • Audio:
    • Fire-and-forget sound effects via [crate::audio::Audio]
    • Looping background music and playlists via [crate::audio::Bgs]
  • Controls: Keyboard and mouse input via [crate::controls::Key]
  • Colors: Predefined and custom color constants.
  • Images: Load sprite sheets and convert them to bitmap arrays.