3 ms·
I'd been using entt in C++, and recently have been working on a wrapper for entt in Nim (since Nim can just generate C++ output, works fine with templates, and
by nikki93 6y ago
I'd been using entt in C++, and recently have been working on a wrapper for entt in Nim (since Nim can just generate C++ output, works fine with templates, and lets you even emit your own C++ code, this is doable), and found that Nim is quite ergonomic for ECS code: https://gist.github.com/nikki93/694524b8c007b4269c899b2e046b8025 https://gist.github.com/nikki93/694524b8c007b4269c899b2e046b...
That's the entire main file for a simple demo with rectangles, some of which oscillate, and you can touch to remove (multitouch supported).