working on sprite config, kinda scared I'm f***ing everything up :)

This commit is contained in:
herbglitch 2025-03-25 04:54:13 -06:00
parent da2be7780b
commit 8845cf78e0
7 changed files with 149 additions and 55 deletions

View file

@ -91,7 +91,9 @@ void ARC_Sprite_SetOrigin(ARC_Sprite *sprite, ARC_FPoint origin){
void ARC_Sprite_SetOpacity(ARC_Sprite *sprite, float opacity){
sprite->opacity = opacity;
SDL_SetTextureAlphaMod((SDL_Texture *)sprite->spritesheet->texture, sprite->opacity);
if(sprite->spritesheet != NULL){
SDL_SetTextureAlphaMod((SDL_Texture *)sprite->spritesheet->texture, sprite->opacity);
}
}
uint32_t ARC_Sprite_GetFrameIndex(ARC_Sprite *sprite){