struct Sprite{ Texture2D *texture; float x; float y; float destX; float destY; int clicked; } Sprite; void addSprite(struct Sprite *sprites, int *spriteAmount, Texture2D *texture, int x, int y){ if(*spriteAmount < 100){ (sprites + *spriteAmount) -> texture = texture; (sprites + *spriteAmount) -> x = x; (sprites + *spriteAmount) -> y = y; (*spriteAmount)++; printf("SPRITE\n"); } else{ printf("Voll\n"); } } void DrawSprite(struct Sprite *sprite){ DrawTexture(*sprite->texture, sprite->x, sprite->y, WHITE); }