Giter VIP home page Giter VIP logo

ecs_pong's People

Contributors

sandermertens avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

flecs-hub sh-dave

ecs_pong's Issues

ECS_COLUMN index bug in Collision

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.

Bake unable to clone dependencies: `bake clone SanderMertens/ecs_pong`

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.