You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
604 B

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);
}