diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-09 21:04:08 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-09 21:04:08 -0400 |
commit | b6ee2b7c296abcfff1ae7f7ac4db976dc4d6fd8e (patch) | |
tree | 7d7101a3ba3f7170faa7fe6ede4e378f84f5e18c /include | |
parent | 9e79696c65a4f5a62f504ba855ee0ba8f036b768 (diff) |
world gen
Diffstat (limited to 'include')
-rw-r--r-- | include/World.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/World.h b/include/World.h index 4a097a6..212fe38 100644 --- a/include/World.h +++ b/include/World.h @@ -2,21 +2,19 @@ #define WORLD_H #include <common.h> -#include <cstring> -#define LAYER0_Y (-0.8f) -#define TEX_SIZE ( 0.2f) +#define HLINE (2.0f/ 200 ) class World { private: - struct layer_t { - unsigned int tex; - float offset; - } layer[4]; + 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(const char *l1,const char *l2,const char *l3,const char *bg); + World(float width); void draw(void); - void update(int player_accel); }; #endif // WORLD_H |