2024-10-07 20:15:20 +00:00
|
|
|
#ifndef STATE_H
|
|
|
|
#define STATE_H
|
|
|
|
|
|
|
|
#include "twn_game_api.h"
|
|
|
|
|
2024-10-14 12:31:56 +00:00
|
|
|
#define MAX_BUNNIES 500000 // 100K bunnies limit
|
2024-10-07 20:15:20 +00:00
|
|
|
#define BUNNY_W 26
|
|
|
|
#define BUNNY_H 37
|
|
|
|
#define SPRITE_SCALE 1
|
|
|
|
|
2024-10-07 22:20:42 +00:00
|
|
|
typedef struct Bunny
|
|
|
|
{
|
2024-10-07 20:15:20 +00:00
|
|
|
Vec2 position;
|
|
|
|
Vec2 speed;
|
|
|
|
Color color;
|
|
|
|
} Bunny;
|
|
|
|
|
2024-10-07 22:20:42 +00:00
|
|
|
typedef struct State
|
|
|
|
{
|
2024-10-07 20:15:20 +00:00
|
|
|
Bunny bunnies[MAX_BUNNIES];
|
|
|
|
int bunniesCount;
|
|
|
|
} State;
|
|
|
|
|
|
|
|
#endif
|