blob: 212fe3877bef834c0abe680b52c73e1695354f18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef WORLD_H
#define WORLD_H
#include <common.h>
#define HLINE (2.0f/ 200 )
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
|