feat: add multiple birds

This commit is contained in:
huaqo-games
2025-11-06 16:11:01 +01:00
parent 46796d8af6
commit ac2e102911
2 changed files with 67 additions and 55 deletions
+7 -5
View File
@@ -152,12 +152,14 @@ typedef struct
float rotation;
} Player;
#define MAX_BIRDS 100
typedef struct {
Sprite sprite;
Animation animation;
Physics physics;
bool arrived;
Vector2 destPos;
int count;
Sprite sprite[MAX_BIRDS];
Animation animation[MAX_BIRDS];
Physics physics[MAX_BIRDS];
bool arrived[MAX_BIRDS];
Vector2 destPos[MAX_BIRDS];
} Birds;
typedef struct {