Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@colyseus/ecs
Advanced tools
NOT READY TO USE
The current state of this repository is very messy - basically a bunch of glue code trying to make @colyseus/schema
work along with ECSY.
If you're feeling brave enough, you're encouraged to continue performing some experiments with this repository and help it reach a not that bad state.
There are quite a few Entity Component Systems written in JavaScript available out there. I'm currently experimenting integrating @colyseus/schema
with ECSY.
The goal of this project is to have a good way to use ECS along with Colyseus - being able to synchronize entities and components defined in the Entity Component System.
Component
that extends from Schema
.@colyseus/schema
require the end user to to define the "schema" of the data structure
registerComponent()
to replicate the definitions from @colyseus/schema
(through the @type()
annotation) into ECSY's schema.TagComponent
that does not have any data on it. This conflicts with @colyseus/schema
, as every Schema
instance is required to hold at least one property.World
into ~1236 bytes.
Make sure you create or join the room on the client by passing in a concrete type, not just the generic. For instance instead of:
await client.joinById<MyGameState>(roomId)
you should use
await client.joinById(roomId, {}, MyGameState)
FAQs
Entity Component System integration for Colyseus
The npm package @colyseus/ecs receives a total of 1 weekly downloads. As such, @colyseus/ecs popularity was classified as not popular.
We found that @colyseus/ecs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.