Crate jugar

Crate jugar 

Source
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§

JugarConfig
Engine configuration
JugarEngine
The main Jugar game engine
Time
Engine time information

Enums§

JugarError
Jugar engine errors
LoopControl
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