inital commit

This commit is contained in:
2026-07-09 00:27:26 +01:00
commit 06bcac9bf7
22 changed files with 793 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#include <render.hpp>
#include <components.hpp>
#include<raylib.h>
#include <entt/entt.hpp>
void update_render_system(entt::registry &registry){
auto view = registry.view<const Sprite, const Position>();
view.each([] (const auto &sprite, const auto &position){
if (sprite.texture){
DrawTexture(*(sprite.texture),position.x,position.y,WHITE);
}else{
DrawRectangle(position.x,position.y,50, 70,BLACK);
}
});
}