diff options
Diffstat (limited to 'include/world.h')
-rw-r--r-- | include/world.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/world.h b/include/world.h new file mode 100644 index 0000000..21d6de8 --- /dev/null +++ b/include/world.h @@ -0,0 +1,21 @@ +#ifndef WORLD_H +#define WORLD_H + +#include <common.h> + +class World { +private: + struct line_t { + float y; + unsigned char color; + } __attribute__ ((packed)) *line; + unsigned int lineCount; + int x_start; +public: + World(unsigned int width); + ~World(void); + void draw(vec2 *vec); + void detect(vec2 *v,vec2 *vel,const float width); +}; + +#endif // WORLD_H |