euv-engine 0.9.1

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 tick handler.
pub type TickHandlerRc = Rc<RefCell<dyn TickHandler>>;

/// A reference-counted closure cell used to keep the `requestAnimationFrame` closure alive.
pub type RafClosureCell = Rc<RefCell<Option<Closure<dyn FnMut()>>>>;