start turret

This commit is contained in:
2025-06-10 16:29:17 +02:00
parent 79c8b747cd
commit a17e3abbff
17 changed files with 213 additions and 68 deletions

View File

@@ -20,13 +20,14 @@ typedef struct EntityTypeReg {
char name[20];
int speed;
int entityTickRate;
uint16_t maxHealth;
} EntityTypeReg;
typedef struct Entity {
MiniRect tileRect;
SDL_Rect renderRect;
EntityType type;
uint16_t health;
int16_t health;
MiniRect target;
Path path;
int entityNextTick;