Expand description
§Jugar
WASM-native game engine for mobile to ultrawide desktop experiences.
Jugar provides a complete game development framework targeting wasm32-unknown-unknown
with pure WASM binary output (zero JavaScript).
§Features
- ECS Architecture: High-performance Entity-Component-System
- Responsive Design: Scales from mobile to 32:9 ultrawide
- Physics: Tiered physics with WebGPU → WASM-SIMD → Scalar fallback
- AI: GOAP planner and Behavior Trees
- Audio: Spatial 2D audio system
- Procedural Generation: Noise, dungeons, and WFC
§Example
ⓘ
use jugar::prelude::*;
fn main() {
let mut engine = JugarEngine::new(JugarConfig::default());
engine.run(|_| LoopControl::Exit);
}Re-exports§
pub use jugar_ai as ai;pub use jugar_audio as audio;pub use jugar_core as game_core;pub use jugar_input as input;pub use jugar_physics as physics;pub use jugar_procgen as procgen;pub use jugar_render as render;pub use jugar_ui as ui;
Modules§
- prelude
- Prelude for common imports
Structs§
- Jugar
Config - Engine configuration
- Jugar
Engine - The main Jugar game engine
- Time
- Engine time information
Enums§
- Jugar
Error - Jugar engine errors
- Loop
Control - Loop control returned from update callback
Functions§
- create_
game - Creates a simple game with default configuration
- create_
mobile_ game - Creates a game with mobile configuration
- create_
ultrawide_ game - Creates a game with ultrawide configuration
Type Aliases§
- Result
- Result type for Jugar operations