mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 20:28:36 -07:00
Add NFC Maker and Jetpack Joyride apps
This commit is contained in:
29
applications/external/jetpack_joyride/includes/scientist.h
vendored
Normal file
29
applications/external/jetpack_joyride/includes/scientist.h
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user