change convention: from allman to K&R. add: gravity component
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user