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 spatial;
19mod sprite;
20
21pub use {
22    asset::*, audio::*, collider::*, entity::*, input::*, math::*, physics::*, renderer::*,
23    scene::*, scheduler::*, spatial::*, sprite::*,
24};
25
26use euv::*;
27
28use std::{
29    cell::RefCell,
30    collections::{HashMap, HashSet},
31    ops::{Add, AddAssign, Mul, MulAssign, Neg, Sub, SubAssign},
32    rc::Rc,
33    sync::atomic::{AtomicU64, Ordering},
34};
35
36use {js_sys::*, lombok_macros::*, wasm_bindgen::prelude::*, web_sys::*};