Skip to main content

euv_engine/
lib.rs

1//! euv-engine
2//!
3//! A high-performance 2D and 3D game engine built on the euv framework for WebAssembly,
4//! featuring an ECS-style entity system, fixed-timestep game loop, canvas rendering,
5//! physics simulation, collision detection, sprite animation, scene management,
6//! asset loading, and Web Audio integration.
7
8mod asset;
9mod audio;
10mod collider;
11mod entity;
12mod input;
13mod math;
14mod physics;
15mod renderer;
16mod scene;
17mod scheduler;
18mod sprite;
19
20pub use {
21    asset::*, audio::*, collider::*, entity::*, input::*, math::*, physics::*, renderer::*,
22    scene::*, scheduler::*, sprite::*,
23};
24
25use euv::*;
26
27use std::{
28    cell::RefCell,
29    collections::{HashMap, HashSet},
30    ops::{Add, AddAssign, Mul, MulAssign, Neg, Sub, SubAssign},
31    rc::Rc,
32    sync::atomic::{AtomicU64, Ordering},
33};
34
35use {js_sys::*, lombok_macros::*, wasm_bindgen::prelude::*, web_sys::*};