sandermertens / ecs_pong Goto Github PK
View Code? Open in Web Editor NEWA no-frills implementation of pong in the flecs ECS framework
A no-frills implementation of pong in the flecs ECS framework
There is a bug in Collision
System.
In that lines
ECS_COLUMN(rows, EcsPosition2D, p_ball, 1);
ECS_COLUMN(rows, EcsVelocity2D, v_ball, 2);
Position and Velocity components are fetched by 1 and 2, however as you can see below system definition, three components are registered.
ECS_SYSTEM(world, Collision, EcsOnSet, EcsCollision2D, Ball.EcsPosition2D, Ball.EcsVelocity2D);
In this way game crashes while fetching p_ball
and gives that error
[err] assert(!size || column->size == size) flecs/src/system.c:660: column retrieved with mismatching type
I guess first component is collision component and it fetched in very first line of this system with using ecs_column
.
On the whole, if we change 1, 2 to 2, 3 game works with no error.
Hello,
I'm a Flecs newbie on Ubuntu 20 trying to get started with the ecs_pong demo.
Following the instructions from README.md,
bake clone SanderMertens/ecs_pong
fails to clone the dependencies, unable to find them under github.com/SanderMertens
However, bake was successfully able to clone the dependencies when using flecs-hub instead of SanderMertens, like this:
bake clone flecs-hub/ecs_pong
Then the build for flecs-math fails (compiler expects ';' after 'FLECS_MATH_EXPORT'), but maybe that's a separate issue.
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.