#ecs #gamedev #component #graph #programming #performance #prototype

froggy

Froggy is a prototype for the Component Graph System programming model. It aims to combine the convenience of composition-style Object-Oriented Programming with the performance close to Entity-Component Systems

9 unstable releases (3 breaking)

Uses old Rust 2015

0.4.4 Oct 25, 2017
0.4.2 Oct 25, 2017
0.4.1 Sep 11, 2017
0.4.0 Aug 28, 2017
0.1.1 Feb 13, 2017

#1997 in Data structures

Download history 42/week @ 2023-12-11 64/week @ 2023-12-18 30/week @ 2023-12-25 15/week @ 2024-01-01 55/week @ 2024-01-08 47/week @ 2024-01-15 38/week @ 2024-01-22 21/week @ 2024-01-29 34/week @ 2024-02-05 53/week @ 2024-02-12 64/week @ 2024-02-19 70/week @ 2024-02-26 68/week @ 2024-03-04 69/week @ 2024-03-11 75/week @ 2024-03-18 70/week @ 2024-03-25

290 downloads per month
Used in 2 crates

MIT/Apache

32KB
596 lines

froggy

Build Status Docs Crates.io Gitter

Froggy is a prototype for Component Graph System. Froggy is not an ECS (it could as well be named "finecs" but then it would have "ecs" in the name... yikes)! Give it a try if:

  • you are open to new paradigms and programming models
  • you are tired of being forced to think in terms of ECS
  • you like simple composable things

Check ecs_bench for performance comparisons with actual ECS systems.

Example

extern crate froggy;

fn main() {
    let mut positions = froggy::Storage::new();
    // create entities
    let entities = vec![
        positions.create(1u8), positions.create(4u8), positions.create(9u8)
    ];
    // update positions
    for e in &entities {
        positions[e] += 1;
    }
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~160KB