ECSpanse - an Entity Component System framework for Elixir

Great library, thanks! It got me to start on a long pending project. I’m trying to emulate tabletop like war game and it’s going pretty well. There are a few issues/questions I have run into…

The biggest issue I have is that the game engine raises an UndefinedFunctionError when t (I think) elixir recompiles and I have to restart the app. I can open a GitHub issue if you’d like.

Also since my game moves slowly, LiveView instance that join don’t see anything until a projection updates. I know I can get the data right after I create the projection, but would it make the coding cleaner if projections always treated the first run as an update. Since they never got called any state is technically different…

Also none of the tutorials mention a server running multiple concurrent games, but I guess you can just handle that in code, like create a session entity and make all of the units in that game children? I wonder if that kind of scoping could be built in idk if there’s a more efficient way than the way I’m doing it.

Sorry that was a lot. Thanks again for the cool library! I love using elixir for the backend work and I’m using LiveView and BabylonJS for the front end.

1 Like