All Projects → leudz → Shipyard

leudz / Shipyard

Licence: other
Entity Component System focused on usability and speed.

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Shipyard

Uecs
Ubpa Entity-Component-System (U ECS) in Unity3D-style
Stars: ✭ 174 (-29.55%)
Mutual labels:  ecs, game-development, gamedev, entity-component-system, architectural-patterns
Entt
Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much more
Stars: ✭ 6,017 (+2336.03%)
Mutual labels:  ecs, game-development, gamedev, entity-component-system, architectural-patterns
Entitas Csharp
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
Stars: ✭ 5,393 (+2083.4%)
Mutual labels:  ecs, game-development, gamedev, entity-component-system
Entitas Sync Framework
Networking framework for Entitas ECS. Targeted at turnbased games or other slow-paced genres.
Stars: ✭ 98 (-60.32%)
Mutual labels:  ecs, game-development, gamedev, entity-component-system
Entitas Cpp
Entitas++ is a fast Entity Component System (ECS) C++11 port of Entitas C#
Stars: ✭ 229 (-7.29%)
Mutual labels:  ecs, game-development, gamedev, entity-component-system
Godex
Godex is a Godot Engine ECS library.
Stars: ✭ 307 (+24.29%)
Mutual labels:  ecs, game-development, gamedev, entity-component-system
Defaultecs
Entity Component System framework aiming for syntax and usage simplicity with maximum performance for game development.
Stars: ✭ 286 (+15.79%)
Mutual labels:  ecs, game-development, gamedev, entity-component-system
Flecs
A fast entity component system (ECS) for C & C++
Stars: ✭ 2,201 (+791.09%)
Mutual labels:  ecs, game-development, gamedev, entity-component-system
Svelto.ecs
Svelto ECS C# Lightweight Data Oriented Entity Component System Framework
Stars: ✭ 605 (+144.94%)
Mutual labels:  ecs, game-development, entity-component-system
Ecs
A simple and easy to use entity-component-system C++ library
Stars: ✭ 20 (-91.9%)
Mutual labels:  ecs, game-development, entity-component-system
Rust Game Development Frameworks
List of curated frameworks by the **Game Development in Rust** community.
Stars: ✭ 81 (-67.21%)
Mutual labels:  ecs, game-development, entity-component-system
Ecs
LeoECS is a fast Entity Component System (ECS) Framework powered by C# with optional integration to Unity
Stars: ✭ 578 (+134.01%)
Mutual labels:  ecs, game-development, entity-component-system
Edyn
Edyn is a real-time physics engine organized as an ECS.
Stars: ✭ 113 (-54.25%)
Mutual labels:  ecs, game-development, entity-component-system
ecs
A dependency free, lightweight, fast Entity-Component System (ECS) implementation in Swift
Stars: ✭ 79 (-68.02%)
Mutual labels:  gamedev, ecs, entity-component-system
Gdk For Unity Fps Starter Project
SpatialOS GDK for Unity FPS Starter Project
Stars: ✭ 119 (-51.82%)
Mutual labels:  ecs, game-development, entity-component-system
Endless Runner Entitas Ecs
Runner template for Unity
Stars: ✭ 41 (-83.4%)
Mutual labels:  ecs, game-development, entity-component-system
Anything about game
A wonderful list of Game Development resources.
Stars: ✭ 541 (+119.03%)
Mutual labels:  ecs, game-development, gamedev
Ape Ecs
Entity-Component-System library for JavaScript.
Stars: ✭ 137 (-44.53%)
Mutual labels:  ecs, game-development, entity-component-system
Etengine
Realtime 3D Game-Engine with a focus on space sim. Written in C++ 14
Stars: ✭ 408 (+65.18%)
Mutual labels:  ecs, game-development, entity-component-system
Kengine
Entity-Component-System (ECS) with a focus on ease-of-use, runtime extensibility and compile-time type safety and clarity.
Stars: ✭ 417 (+68.83%)
Mutual labels:  ecs, game-development, entity-component-system

Shipyard

Shipyard is an Entity Component System focused on usability and speed.

If you have any question or want to follow the development more closely Chat.

Crates.io Documentation LICENSE

Guide | Demo

Basic Example

use shipyard::{IntoIter, View, ViewMut, World};

struct Health(u32);
struct Position {
    x: f32,
    y: f32,
}

fn in_acid(positions: View<Position>, mut healths: ViewMut<Health>) {
    for (_, mut health) in (&positions, &mut healths)
        .iter()
        .filter(|(pos, _)| is_in_acid(pos))
    {
        health.0 -= 1;
    }
}

fn is_in_acid(_: &Position) -> bool {
    // it's wet season
    true
}

fn main() {
    let mut world = World::new();

    world.add_entity((Position { x: 0.0, y: 0.0 }, Health(1000)));

    world.run(in_acid).unwrap();
}

Small Game Example

Inspired by Erik Hazzard's Rectangle Eater.

Play Source

Table of Contents

Origin of the name

Assembly lines take input, process it at each step, and output a result. You can have multiple lines working in parallel as long as they don't bother each other.

Shipyards such as the Venetian Arsenal are some of the oldest examples of successful, large-scale, industrial assembly lines. So successful that it could output a fully-finished ship every day.

Shipyard is a project you can use to build your own highly-parallel software processes.

Motivation

I initially wanted to make an ECS to learn how it works. After a failed attempt and some research, I started working on Shipyard.

Specs was already well established as the go-to Rust ECS but I thought I could do better and went with EnTT's core data-structure (SparseSet) and grouping model. A very flexible combo.

Cargo Features

  • parallel (default) — enables workload threading and add parallel iterators
  • serde1 — adds (de)serialization support with serde
  • std (default) — lets Shipyard use the standard library
  • thread_local — adds methods and types required to work with !Send and !Sync components

License

Licensed under either of

at your option.

Contributing

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].