2024-10-07 20:15:20 +00:00
|
|
|
#ifndef STATE_H
|
|
|
|
#define STATE_H
|
|
|
|
|
|
|
|
#include "twn_game_api.h"
|
|
|
|
|
2024-10-07 22:20:42 +00:00
|
|
|
#define MAX_BUNNIES 100000 // 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;
|
|
|
|
InputState mouse_state;
|
|
|
|
} State;
|
|
|
|
|
|
|
|
#endif
|