first commit

This commit is contained in:
2024-08-24 00:47:58 -04:00
commit f6ef842a28
400 changed files with 43479 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#include "component_rotate.h"
void
component_rotate_tick(ComponentRotate* self, ECS* ecs)
{
ComponentTextureQuad* textureQuad;
textureQuad = ecs_component_get(ecs, COMPONENT_TEXTURE_QUAD, self->component.id);
textureQuad->rotation += self->speed;
}
void
component_rotate_init(ComponentRotate* self, ECS* ecs, f32 speed)
{
self->speed = speed;
}