Files
sinbad/include/hive.h
T
2025-04-11 22:01:30 +02:00

19 lines
515 B
C

#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