unleashed-firmware/applications/external/jetpack_joyride/includes/scientist.h
2023-07-06 18:44:45 +03:00

29 lines
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