mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-18 16:53:45 +00:00
29 lines
No EOL
636 B
C
29 lines
No EOL
636 B
C
#ifndef SCIENTIST_H
|
|
#define SCIENTIST_H
|
|
|
|
#include "point.h"
|
|
#include "game_sprites.h"
|
|
#include <gui/gui.h>
|
|
|
|
#define SCIENTIST_VELOCITY_MIN -0.5f
|
|
#define SCIENTIST_VELOCITY_MAX 0.5f
|
|
|
|
#define SCIENTISTS_MAX 6
|
|
|
|
typedef enum {
|
|
ScientistStateAlive,
|
|
ScientistStateDead,
|
|
} ScientistState;
|
|
|
|
typedef struct {
|
|
bool visible;
|
|
POINTF point;
|
|
float velocity_x;
|
|
ScientistState state;
|
|
} SCIENTIST;
|
|
|
|
void scientist_tick(SCIENTIST* const scientist);
|
|
void spawn_random_scientist(SCIENTIST* const scientists);
|
|
void draw_scientists(const SCIENTIST* scientists, Canvas* const canvas, const GameSprites* sprites);
|
|
|
|
#endif // SCIENTIST_H
|