euv-engine 0.10.0

A high-performance 2D game engine built on the euv framework, featuring ECS, fixed-timestep game loop, canvas rendering, physics, collision detection, sprite animation, and audio.
Documentation
1
2
3
4
5
6
7
use crate::*;

/// A reference-counted, interior-mutable list of asset load callbacks.
///
/// Stores `Closure` objects to prevent them from being dropped prematurely,
/// avoiding memory leaks when registering `onload`/`onerror` handlers.
pub type AssetClosures = Rc<RefCell<Vec<Closure<dyn FnMut()>>>>;