I'm releasing this code because I couldn't find any even rough examples of Chipmunk2D being integrated with #entt or #flecs
I'm still slowly working through various integration approaches of Chipmunk2D & flecs, and that can be seen here https://github.com/dmlary/flecs-chipmunk2d
I put up a clean repo with the sample integration of #entt and #chipmunk2d.
It includes:
* entity movement
* collision detection
* rudimentary general system implementation for EnTT
* per-frame & per-system stepping
* entity editing with #imgui
This code absolutely won't build on your system, but it is a sample integration of Chipmunk2D into an ECS library.
#Sokol #gamedev #imgui #chipmunk2d #entt
Implemented true system single-stepping in my sandbox. Only one system will be run per mouse step, allowing me to see what happens to entities & components between each system. Of course, some systems are flagged as "always-run" so I can actually interact with imgui and see the entity explorer.
I'm getting close to the point where I can start a clean repo to share this example integration of #entt and #chipmunk2d with an #imgui entity editor.
Spent a month getting #chipmunk2d working in both #flecs, and #entt. Last night I realized that I don’t actually want “physics”, I just want collision detection.
“Physics” is a tile moving at 0.000000000001 pixels-per-second instead of coming to a stop, because that’s how the real world works. The real world is terrifying.
As I dive into AABB, does anyone know of a decent C or C++ collision detection library? Or is AABB so basic there’s no need for a library.
#gamedev #indiedev #entt #flecs #chipmunk2d
Collision is worki— hey, get back here! Oh god, what happened to the camera?
Assets from @kenney roguelike/RPG pack
Collision is worki— hey, get back here! Oh god, what happened to the camera?
System abstraction implemented yesterday; today was basic entity editor with multi-window support. This chunk will end up open sourced because I was struggling to find good references for integrating libraries with ECS. Assets from kenney.nl #screenshotsaturday #sokol #entt #chipmunk2d #imgui #ecs
#ecs #imgui #chipmunk2d #entt #Sokol #screenshotsaturday
Here's a gif for #ScreenshotSaturday of the widget editor I've been working in my spare time. I'd say it's coming along quite nicely!
Currently you can customize the alignment of the widget on the screen, and the size and color of the widget. You can also save this data to a file.
You can also remove visual components of the widget (such as alignment or color), and add them back dynamically
All of this uses #ImGui (obviously) as a visual backend, and #EnTT as a backend for adding and removing widget components! It also uses #yamlcpp in tandem with my own library called konbu for parsing and writing widget data.
You can check out the source code here:
https://github.com/josiest/gold
#ScreenshotSaturday #imgui #entt #yamlcpp
Got a _super_ basic prototype of my #CraftingSystem hobby project using various frameworks including #SDL #entt and #ImGui . It's pretty barebones, but that's just part of the #IterativeProcess !
#craftingsystem #sdl #entt #imgui #iterativeprocess
Got a _super_ basic prototype of my #CraftingSystem hobby project using various frameworks including #SDL #entt and #ImGui . It's pretty barebones, but that's just part of the #IterativeProcess !
#craftingsystem #sdl #entt #imgui #iterativeprocess