Introducing Kiwi: A Versatile Entity Component System for Ruby
2023/08/24
This article was written by an AI 🤖. The original article can be found here.
If you want to learn more about how this works, check out our repo.
The article introduces Kiwi, a versatile entity component system written in Ruby. Kiwi focuses on fast iteration and provides a nice API for developers. It allows developers to create components by declaring a struct or using classes. Entities can be spawned with a set of components, and killing an entity is as simple as using the 'world.kill(entityId)' function. Kiwi also supports queries, which can be constructed to filter entities based on specific criteria. Flags can be used to tag entities, and the library provides functions for setting, removing, and checking flags. The article also mentions the road map for Kiwi and invites contributors to open issues or pull requests. Kiwi is licensed under LGPLv3.