endershadow8 / wolf-ecs Goto Github PK
View Code? Open in Web Editor NEWThe fastest Entity Component System library for the web
License: MIT License
The fastest Entity Component System library for the web
License: MIT License
Fixed size arrays would be great for working with stuff like matrices. I'm not sure what the best way to implement this would be, but views on a continuous buffer sound easy enough!
Hey! Thanks for the library
I have a similar problem with your package as bitECS. And others have a problem with this too
NateTheGreatt/bitECS#30
The solution to remove from your package.json {type: module}
in node_modules is very bad, I would not want to do it manually every time
ecs.defineQuery is missing in new version, please update readme and show some new demos of how to use query()/createQuery() with all/not/any, maybe more about match() as well
Typescript is giving me Property 'defineComponent' does not exist on type 'ECS'.
, but it seems to be working fine with registerComponent, so just checking that's how it's meant to work!
in the Queries section in your readme you mention:
To define a query, use ecs.createQuery:
// Matches entities which have both component1 and component2
const query = ecs.createQuery(component1, component2)
This however doesnt compile, instead you have to use all()
to make that work:
I sometimes want multiple systems to use the same query. Right now I just keep a record of queries around in my state, but this is pretty error prone. For example, I might realize system X needs access to component Y as well (which is not in the query system X uses), so now I need to check if anyone else is using the query system X uses, and if the answer is yes, create a different query which has all the components in the previous one + Y. (should I mention how akward naming queries is:)?)
it would be a lot nicer if the ECS class could keep track of existing queries and just return one of those when attempting to create a query with the same parameters as a previously created one
in your readme you link to your babel plugin but its a github 404
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.