blob: e029604f61c059318b7c2bac9b49fb467a81cee4 (
plain)
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
|
#include <vector>
#include <iostream>
struct Brick
{
int altitude; //meter above sea level
int type;
};
struct Player
{
int x;
int y;
double x2;
double y2;
int speed;
int anim;
bool dead;
bool win;
};
struct World
{
Player player;
std::vector<int> coins_pos;
std::vector<std::vector<Brick>> bricks{{{}}};
int level;
int coins;
World(int level);
void sim(double);
void mouseclick(int x, int y);
void reset();
void next_level();
};
|