big refactor

This commit is contained in:
2025-04-11 22:01:30 +02:00
parent 68412a7d7a
commit 928842c4c2
42 changed files with 1429 additions and 3312 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef HIVE_H
#define HIVE_H
#include <object.h>
Object CreateHive(Texture2D texture, float frameWidth)
{
return (Object){
.sprite = {
.texture = texture,
.sourceRec = (Rectangle){0.0f, 0.0f, frameWidth, frameWidth},
.destRec = (Rectangle){0.0f, 0.0f, frameWidth, frameWidth},
.origin = (Vector2){frameWidth / 2, frameWidth / 2},
.rotation = 0.0f,
.color = WHITE},
.position = (Vector2){0.0f, 0.0f}};
}
#endif // HIVE_H