diff options
author | Andy Belle-Isle <abelleisle@roadrunner.com> | 2015-09-10 11:51:56 -0400 |
---|---|---|
committer | Andy Belle-Isle <abelleisle@roadrunner.com> | 2015-09-10 11:51:56 -0400 |
commit | 22fd8623af3f57c4e28f43f793bae4d14948abc0 (patch) | |
tree | c4936680f4cffd0d52e4d96aed39404fdaa30a52 /include/World.h | |
parent | dfb65f04b8579c9c4e24086452474adcae9b87b7 (diff) | |
parent | a3db993224c994fdff6f50fedcc266c5e0b94aa8 (diff) |
Merge remote-tracking branch 'origin/master'
d
Conflicts:
include/World.h
include/common.h
include/entities.h
src/UIClass.cpp
src/World.cpp
src/entities.cpp
src/main.cpp
Diffstat (limited to 'include/World.h')
-rw-r--r-- | include/World.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/World.h b/include/World.h index 6da0972..dd133b9 100644 --- a/include/World.h +++ b/include/World.h @@ -1,3 +1,4 @@ +<<<<<<< HEAD #ifndef WORLD_H #define WORLD_H @@ -16,3 +17,26 @@ public: }; #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 |