euv-engine 0.13.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
/// The JavaScript event property name for the key code on keyboard events.
pub(crate) const INPUT_KEY_CODE_PROPERTY: &str = "code";

/// The JavaScript event property name for the mouse button on mouse events.
pub(crate) const INPUT_MOUSE_BUTTON_PROPERTY: &str = "button";

/// The JavaScript event property name for the client X coordinate.
pub(crate) const INPUT_CLIENT_X_PROPERTY: &str = "clientX";

/// The JavaScript event property name for the client Y coordinate.
pub(crate) const INPUT_CLIENT_Y_PROPERTY: &str = "clientY";

/// The DOM event name for key press events, bound to `window`.
pub(crate) const INPUT_EVENT_KEYDOWN: &str = "keydown";

/// The DOM event name for key release events, bound to `window`.
pub(crate) const INPUT_EVENT_KEYUP: &str = "keyup";

/// The DOM event name for mouse button press events, bound to the pointer target.
pub(crate) const INPUT_EVENT_MOUSEDOWN: &str = "mousedown";

/// The DOM event name for mouse button release events, bound to the pointer target.
pub(crate) const INPUT_EVENT_MOUSEUP: &str = "mouseup";

/// The DOM event name for mouse move events, bound to the pointer target.
pub(crate) const INPUT_EVENT_MOUSEMOVE: &str = "mousemove";

/// The DOM event name for the pointer leaving the pointer target.
pub(crate) const INPUT_EVENT_MOUSELEAVE: &str = "mouseleave";

/// The DOM event name for touch start events, bound to the pointer target.
pub(crate) const INPUT_EVENT_TOUCHSTART: &str = "touchstart";

/// The DOM event name for touch move events, bound to the pointer target.
pub(crate) const INPUT_EVENT_TOUCHMOVE: &str = "touchmove";

/// The DOM event name for touch end events, bound to the pointer target.
pub(crate) const INPUT_EVENT_TOUCHEND: &str = "touchend";

/// The DOM event name for the context menu, suppressed on the pointer target
/// so right-click reaches the engine instead of opening the browser menu.
pub(crate) const INPUT_EVENT_CONTEXTMENU: &str = "contextmenu";