change convention: from allman to K&R. add: gravity component

This commit is contained in:
2026-03-07 22:11:16 +01:00
parent f307470f56
commit 0220af27bc
12 changed files with 40 additions and 54 deletions

View File

@@ -1,14 +1,12 @@
#include "animation_util.h"
Animation *MirrorAnimations(Animation *originalAnimations, int count)
{
Animation *MirrorAnimations(Animation *originalAnimations, int count) {
if (!originalAnimations || count <= 0) return NULL;
Animation *mirrored = malloc(sizeof(Animation) * count);
if (!mirrored) return NULL;
for (int i = 0; i < count; i++)
{
for (int i = 0; i < count; i++) {
mirrored[i] = originalAnimations[i];
mirrored[i].currentFrame = 0;
mirrored[i].elapsedTime = 0;