blob: dd133b9bba37ea7c41f32b17d58c6eed2629583e (
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
36
37
38
39
40
41
42
|
<<<<<<< HEAD
#ifndef WORLD_H
#define WORLD_H
#include <common.h>
class World {
private:
struct line_t {
// x = 2.0 (window width) / HLINES
float start; // Where to change to dirt, going down (y)
} *line;
unsigned int lineCount;
public:
World(float width);
void draw(void);
};
#endif // WORLD_H
=======
#ifndef WORLD_H
#define WORLD_H
#include <common.h>
#define HLINE (2.0f/(SCREEN_WIDTH/4))
class World {
private:
struct line_t {
// x = 2.0 (window width) / HLINES
double start; // Where to change to dirt, going down (y)
} *line;
unsigned int lineCount;
public:
World(float width);
void draw(void);
void detect(vec2 *v,const float width);
};
#endif // WORLD_H
>>>>>>> origin/master
|