Giter Site home page Giter Site logo

harmboschloo / elm-ecs Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 0.0 1.7 MB

Using the entity-component-system (ECS) pattern in elm.

Home Page: https://package.elm-lang.org/packages/harmboschloo/elm-ecs/latest/

License: BSD 3-Clause "New" or "Revised" License

Elm 99.92% Batchfile 0.01% JavaScript 0.08%
elm entity-component-system game-development

elm-ecs's People

Contributors

harmboschloo 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

Watchers

 avatar  avatar  avatar

elm-ecs's Issues

How would I create a selector for more than 5 components?

Hi, I'm trying to find out whether to use elm-ecs for an application we are developing at work. It's not so much a game as it is an application with highly composable types, so a kind of ecs seems to make sense. It could very well be though, that we will have more than 5 of these different components, so it would be nice to know whether it's theoretically possible (and ergonomic) to select more than 5 components in a selector.
Of course I'm hoping we won't need selectors that big, but you never know^^

Side note: I'll totally be fine with an answer of "no, you shouldn't be doing that" ^^

Composable selectors?

I think there's a case to be made for selectors to be composable (in my case, I would want to create a special selector that transforms two components, and would want to be able to use that in other selectors.

Some kind of selectWith : Selector comparable ecs a -> ComponentSpec comparable ecs a although I'm pretty sure it wouldn't work that way^^'

In my case, I want to be able to wrap another component in an Owned type if it has the component Owned attached

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.