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
8
9
10
11
12
use crate::*;

/// A trait for objects that can be rendered onto a canvas.
pub trait Renderable {
    /// Draws this object onto the given canvas rendering context.
    ///
    /// # Arguments
    ///
    /// - `&CanvasRenderingContext2d` - The canvas 2D rendering context.
    /// - `&Transform2D` - The world-space transform to apply.
    fn draw(&self, context: &CanvasRenderingContext2d, transform: &Transform2D);
}