deckbuilder_eng
A modular engine for deck-builder games, written in Rust.
Provides reusable components for card/deck logic, game context, audio playback, and egui-based UI.
Features
- Card & Deck System:
- Card struct, deck draw/discard mechanics, search, mill, and more.
- Game Context:
- Player/enemy health, energy, turn tracking, and extensible game logic.
- Audio Management:
- Background music and sound effects via kira.
- Volume, panning, fade, crossfade, and pitch controls.
- UI Helpers:
- Ready-to-use egui widget functions for buttons, sliders, checkboxes, combo boxes, color pickers, and more.
- Image & GIF Support:
- Load and display images and GIF animations in egui.
Example
use *;
use AudioManager;
use *;
use *;
use ;
Modules
card
– Card, deck, and game context types and logic.audio
– AudioManager for music and SFX.ui
– egui widget helpers.ui_image
– Image and GIF helpers for egui.
Requirements
License
MIT OR Apache-2.0