Collision detection!!
Over the last couple of days, I've bee rewriting Crimson from scratch. I decided to keep using ECS after all, after doing a bit more research. I greatly improved the scene management, with object parenting and more memory efficient loading times.
Announcement: Crimson got a website: https://georgelam6.github.io/Crimson/. As Crimson gets bigger and bigger, it will become harder and harder to document. So I've decided to start early with documentation, and created this website for it.
I also got basic collision detection (AABB, circles are coming) to work. You can now add a rectangle component to an object in the scene (XML) file:
And then you can check for collisions in the script like so (using the new findObject function, which returns a pointer to an object in the current scene based on it's name)