-
Notifications
You must be signed in to change notification settings - Fork 1
/
beeGame.hpp
38 lines (34 loc) · 862 Bytes
/
beeGame.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _BEEGAME_H_
#define _BEEGAME_H_
#include "game.hpp"
#include "files/bee_image.h"
#include "files/bee_comb_image.h"
#include "files/bg_river_image.h"
#include "files/flowers_image.h"
#include "files/winner.jpg.h"
struct Flower {
bool visible;
FIXPOINT x;
FIXPOINT y;
FIXPOINT nectar;
int type;
};
static const int FLOWER_COUNT = 10;
struct BeeGame {
FIXPOINT x, y, power, maxpower;
Flower flowers[FLOWER_COUNT];
unsigned long flowerSpawnTimer, nextFlowerSpawn;
bool onFlower = false;
bool bitmask[135];
bool win = false;
};
void inputBee(GameBuff *gameBuff);
void updateBeeGame(GameBuff *gameBuff);
void animateBee(GameBuff *gameBuff);
void scrollBackground(GameBuff *gameBuff);
void initBeeGame(GameBuff *gameBuff);
void drawFlowers(GameBuff *gameBuff);
void drawBeeStatus(GameBuff *gameBuff);
bool beeGameWin();
bool beeGameDone();
#endif