Enemy swarm movement

This commit is contained in:
2024-02-12 14:14:23 +01:00
parent c5b6dc0501
commit e69fdeed1f
15 changed files with 402 additions and 24 deletions

View File

@@ -25,6 +25,8 @@ typedef struct WaveInfo {
#define NUM_WAVES 5
typedef struct Game Game;
static WaveData predefWaves[NUM_WAVES] = {
{ 10, 1.0f, 20, 2.0f, 0, 5 * 60 },
{ 20, 1.0f, 40, 2.0f, 0, 2 * 60 },
@@ -35,7 +37,7 @@ static WaveData predefWaves[NUM_WAVES] = {
WaveInfo getWaveInfo(i32 idx);
void updateWave(WaveInfo *wave, f32 dt);
void updateWave(WaveInfo *wave, Game *game, f32 dt);
bool isWaveSendingOver(const WaveInfo *wave);
bool isWaveOver(const WaveInfo *wave);